/* NOT NEEDED SO WE ALREADY HAD A .gallery-page{} 
.gallery-page {
    padding-bottom: 40px;
}
*/



.gallery-hero {
    padding: 18px 0 18px;
    background: linear-gradient(180deg, var(--sky) 0%, #ffffff 100%);
}


.gallery-page {
    max-width: none;
    margin: 0;
    padding: 0;
    /* THIS WAS IN A SEPARATE .gallery-page {} so I moved it here*/
    padding-bottom: 40px;
}


.gallery-hero-image {
    background:
        linear-gradient(rgba(16,36,52,0.18), rgba(16,36,52,0.06)),
        url('../images/home/aa52.jpg') center center / cover no-repeat;
}


.gallery-hero-content p{
  font-size:1rem;
  margin-bottom:16px;
}

.gallery-section {
    padding: 54px 0;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.gallery-grid img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: 18px;
    box-shadow: var(--shadow);
    cursor: pointer;
    transition: transform 0.2s ease;
}

.gallery-grid img:hover {
    transform: scale(1.02);
}

/*Note this .gallery-hero .hero-panel controls the inner hero box on
both gallery AND contact pages - Contact.php has this instruction in the
gallery.php file:

<section class="gallery-hero">
  <div class="wrap">
    <!--<div class="hero-shell gallery-hero-image">-->
    <div class="hero-shell **contact-hero-image"> **contact.csc does have this
      <div class="hero-panel">
        <span class="eyebrow">Contact Away at Last&trade;</span>
        <h1>Get in touch</h1>
        <p>Questions about availability, the home, or sharing a testimonial? We’d love to hear from you.</p>
      </div>
    </div>
  </div>
</section>
*/

.gallery-hero .hero-panel {
    max-width: 620px;
    /*padding: 18px 22px;
    ----------------------------------------------------added for visual
    this also puts dotted blue around contact.php 
    border: 2px dotted blue; */
}

.lightbox {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(10, 18, 24, 0.92);
    z-index: 9999;
    align-items: center;
    justify-content: center;
    padding: 30px;
}

.lightbox img {
    max-width: 92vw;
    max-height: 88vh;
    border-radius: 14px;
    box-shadow: 0 10px 28px rgba(0,0,0,0.35);
}

.lightbox-close {
    position: absolute;
    top: 18px;
    right: 28px;
    color: #fff;
    font-size: 42px;
    font-weight: 700;
    cursor: pointer;
    line-height: 1;
}

@media (max-width: 900px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .gallery-hero-content {
        margin: 20px;
        max-width: none;
    }
}

@media (max-width: 640px) {
    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .gallery-hero-box {
        min-height: 180px;
    }

    .gallery-hero-content {
        padding: 20px;
    }
}