.gallery-page {
    padding-top: 150px;
    background-color: #f9f9f9;
    min-height: 100vh;
}

.gallery-intro h1 {
    font-size: 2.2rem;
    text-transform: uppercase;
    letter-spacing: 4px;
    margin-bottom: 30px;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 20px;
    width: 85%;
    max-width: 1400px;
    margin: 0 auto;
}

.gallery-item {
    display: grid;
    grid-template-columns: 1fr 1fr; /* This creates the two equal columns */
    gap: 20px;
}

.gallery-item img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 4px;
}

.gallery-item-width {
  display: flex;
    flex-direction: column;
    gap: 20px; /* Adjust this for more or less white space */
    width: 100%;
  }

.gallery-item-width img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 4px; /* Optional: adds a slight high-end rounded edge */
  }


.gallery-item:hover .item-overlay { opacity: 1; }
.gallery-item.hidden { display: none; }

.t-grid {
  display: flex;
  flex-direction: column;
  gap: 20px;
  width: 100%;
  /* 1. This centers your smaller boxes in the middle of the screen */
  align-items: center;
}

/* 2. Target the Hero box and the Portrait-Pair box */
.t-grid > div {
  width: 75%;           /* CHANGE THIS: Try 75% or 80% instead of 100% */
  max-width: 1200px;    /* Optional: prevents it from getting too huge on big monitors */
  box-sizing: border-box;
}

/* 3. Hero styling (unchanged) */
.landscape-hero {
  position: relative
}
.landscape-hero img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 4px;
}

/* 4. Portrait pair styling */
.portrait-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  width: 100%; /* Ensures the pair fills its 75% slot */
}

.portrait-pair a {
  position: relative;
  display: block;
}

.portrait-pair img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 4px;
}


.item-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.5);
    display: flex; justify-content: center; align-items: center;
    opacity: 0; transition: 0.3s;
}

.item-overlay span { 
    color: white; 
    border: 1px solid white; 
    padding: 5px 15px; 
    font-size: 0.7rem; 
    pointer-events: none;

}

/* --- FLOATING BACK BUTTON --- */
.back-floating-btn {
    position: fixed;
    top: 130px; /* Sits below your 100px navbar */
    left: 30px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.9); /* Semi-transparent white */
    color: #111;
    display: flex;
    justify-content: center;
    align-items: center;
    text-decoration: none;
    font-size: 1.5rem;
    font-weight: bold;
    z-index: 9999; /* Ensure it stays on top */
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    border: 1px solid #ddd;
}

.back-floating-btn:hover {
    background-color: #c5a059; /* Brand Gold */
    color: #fff;
    border-color: #c5a059;
    transform: translateX(-5px); /* Nudge left on hover */
}

.back-to-top {
    position: fixed; bottom: 30px; right: 30px;
    width: 50px; height: 50px; border-radius: 50%;
    background: #c5a059; color: white; border: none;
    font-size: 20px; cursor: pointer; display: none; z-index: 2000;
}

