/* Gallery Page Specific Styles */

.gallery-hero {
    position: relative;
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 3rem;
    align-items: center;
    overflow: hidden;
    color: var(--white);
    padding: 160px 10% 80px;
    background-color: var(--hero-bg);
}

.gallery-hero .hero-bg-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.gallery-hero .hero-bg-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.92) saturate(1.05);
    transform: scale(1.06);
}

.gallery-hero .hero-bg-gradient {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--hero-gradient);
    z-index: 2;
    pointer-events: none;
}

.gallery-hero .hero-content {
    position: relative;
    z-index: 10;
    width: 100%;
    max-width: 620px;
    grid-column: 1;
    justify-self: start;
    text-align: left;
    background: none;
    backdrop-filter: none;
    border-radius: 0;
    padding: 0;
    margin-top: 0;
}

.gallery-hero .hero-features {
    grid-column: 2;
    justify-self: end;
    position: relative;
    z-index: 10;
    display: flex;
    flex-direction: column;
    gap: 2rem;
    align-items: flex-end;
    width: 230px;
}

.gallery-hero .feature-tag {
    display: flex;
    width: 100%;
    height: auto;
    align-items: center;
    justify-content: flex-start;
    padding: 1.1rem 1.5rem;
    border-radius: 20px;
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    background: var(--white-05);
    border: 1px solid var(--white-10);
    animation: float 4s ease-in-out infinite;
}

.gallery-hero .feature-tag:nth-child(2) {
    animation-delay: 1s;
}

.gallery-hero .feature-tag:nth-child(3) {
    animation-delay: 2s;
}

.gallery-hero .tag-text p {
    color: var(--white);
    opacity: 0.8;
    margin-top: 0.5rem;
    line-height: 1.6;
}

.gallery-hero .feature-tag i {
    color: var(--accent);
    font-size: 2rem;
    margin-right: 0;
}

.gallery-hero .tag-text h4 {
    color: var(--white);
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 0;
    font-family: 'Outfit', sans-serif;
    line-height: 1.15;
}

.gallery-hero h1 {
    font-size: clamp(2.5rem, 4.8vw, 4.2rem);
    line-height: 1.05;
    margin-bottom: 1rem;
    font-weight: 900;
    text-transform: uppercase;
    color: var(--white);
    text-shadow: 0 12px 30px var(--shadow-text);
}

.gallery-hero .hero-tag {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--blue-accent-16);
    color: var(--white);
    padding: 0.55rem 1.4rem;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 1.75rem;
    border: 1px solid var(--blue-accent-45);
}

.gallery-hero p {
    font-size: 1.05rem;
    margin-bottom: 2rem;
    color: var(--white);
    opacity: 0.92;
    max-width: 650px;
    line-height: 1.7;
    border-left: 3px solid var(--accent);
    padding-left: 1.8rem;
}

.gallery-hero .hero-btns {
    display: flex;
    gap: 1.5rem;
    justify-content: flex-start;
}

.gallery-hero .scroll-down-btn {
    display: none !important;
}

/* Gallery Section */
.gallery-section {
    padding: 80px 10%;
    background: var(--bg-main);
}

/* Section title for gallery */
.gallery-section .section-title {
    font-size: 2.8rem;
    color: var(--primary);
    margin-bottom: 0.8rem;
    text-align: center;
}

.gallery-section .section-subtitle {
    text-align: center;
    color: var(--text-muted);
    max-width: 650px;
    margin: 0 auto 3rem;
    font-size: 1.05rem;
    line-height: 1.7;
}

.gallery-filters {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 50px;
}

.filter-btn {
    background: var(--white);
    color: var(--text-main);
    border: 1px solid var(--black-08);
    padding: 12px 28px;
    border-radius: 30px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s var(--ease-out);
    box-shadow: 0 2px 8px var(--black-06);
    font-family: 'Inter', sans-serif;
}

.filter-btn:hover {
    background: var(--accent);
    color: var(--white);
    border-color: var(--accent);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px var(--navy-25);
}

.filter-btn.active {
    background: var(--primary);
    color: var(--white);
    border-color: var(--primary);
    box-shadow: 0 6px 20px var(--navy-30);
}

/* Masonry Grid */
.gallery-masonry {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  grid-auto-rows: 200px;
}

@media (min-width: 576px) {
  .gallery-masonry {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.2rem;
    grid-auto-rows: 240px;
  }
}

@media (min-width: 768px) {
  .gallery-masonry {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    grid-auto-rows: 280px;
  }
}

@media (min-width: 1024px) {
  .gallery-masonry {
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    grid-auto-rows: 320px;
  }
}

.gallery-item-wrap {
  overflow: hidden;
}

.gallery-card {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 20px 50px var(--black-10);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  cursor: pointer;
}

.gallery-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 30px 70px var(--black-20);
}

.gallery-img {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.gallery-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.gallery-card:hover .gallery-img img {
  transform: scale(1.1);
}

.gallery-overlay {
  position: absolute;
  inset: 0;
  background: var(--gallery-overlay);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 2rem;
  color: var(--white);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.gallery-card:hover .gallery-overlay {
  opacity: 1;
}

.gallery-title {
  font-family: 'Outfit', sans-serif;
  font-size: 1.6rem;
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 0.5rem;
  color: var(--white);
}

.gallery-location {
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--white-85);
  margin: 0;
}

.gallery-location i {
  color: var(--accent);
  margin-right: 0.5rem;
}

.gallery-item-wrap.hidden {
  display: none !important;
}

/* Lightbox Modal */
.lightbox-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--dark-overlay-01);
    backdrop-filter: blur(10px);
    z-index: 10000;
    display: none;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.lightbox-modal.active {
    display: flex;
    opacity: 1;
}

.lightbox-content {
    position: relative;
    max-width: 85%;
    max-height: 80%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.lightbox-img {
    max-width: 100%;
    max-height: 70vh;
    border-radius: 12px;
    box-shadow: 0 10px 40px var(--overlay-light);
    border: 4px solid var(--white-10);
    object-fit: contain;
}

.lightbox-caption {
    color: var(--white);
    margin-top: 1.5rem;
    font-size: 1.25rem;
    font-weight: 600;
    text-align: center;
    font-family: 'Outfit', sans-serif;
}

.lightbox-category {
    color: var(--accent);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-weight: 800;
    margin-top: 5px;
}

/* Controls */
.lightbox-close {
    position: absolute;
    top: 30px;
    right: 40px;
    color: var(--white);
    font-size: 2.2rem;
    cursor: pointer;
    background: none;
    border: none;
    transition: color 0.2s;
}

.lightbox-close:hover {
    color: var(--accent);
}

.lightbox-prev,
.lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: var(--white-05);
    border: 1px solid var(--white-10);
    color: var(--white);
    width: 54px;
    height: 54px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 1.25rem;
}

.lightbox-prev {
    left: 40px;
}

.lightbox-next {
    right: 40px;
}

.lightbox-prev:hover,
.lightbox-next:hover {
    background: var(--accent);
    border-color: var(--accent);
    color: var(--white);
}

/* Animations */
@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-8px);
    }
}

/* Responsive Styles */
@media (max-width: 992px) {
    .gallery-hero {
        grid-template-columns: 1fr;
        padding: 220px 5% 80px;
        height: auto;
        min-height: 100vh;
    }

    .gallery-hero .hero-content {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        grid-column: 1;
        width: 100%;
        max-width: 100%;
        text-align: left;
        min-width: 0;
    }

    .gallery-hero .hero-actions .cta-button {
        width: 100%;
        max-width: 340px; /* same width for tablet + mobile */
        text-align: center;
        padding: 16px 24px;
    }

    .gallery-hero .hero-features {
        grid-column: 1;
        justify-self: flex-start;
        display: flex !important;
        flex-direction: row;
        gap: 10px;
        align-items: stretch;
        justify-content: flex-start;
        width: 100%;
        margin-top: 1.5rem;
        min-width: 0;
    }

    .gallery-hero .feature-tag {
        flex: 1;
        min-width: 0;
        width: auto;
        height: auto;
        padding: 1rem 0.8rem;
        flex-direction: column;
        text-align: center;
        gap: 0.7rem;
        animation: none;
    }

    .gallery-hero .feature-tag i {
        font-size: 1.5rem;
    }

    .gallery-hero .feature-tag .tag-text h4 {
        font-size: 0.9rem;
        margin-bottom: 2px;
    }

    .gallery-hero h1 {
        font-size: 3.5rem;
        margin-bottom: 2rem;
    }

    .gallery-hero p {
        margin: 0 0 3rem;
        border-left: 3px solid var(--accent);
        padding-left: 2rem;
        max-width: 600px;
    }

    .gallery-hero .hero-btns {
        flex-direction: column;
        gap: 1.2rem;
        width: 100%;
        max-width: 350px;
        align-self: center;
        margin-top: 1rem;
    }

    .gallery-hero .hero-btns .cta-button {
        width: 100%;
    }

    .gallery-section {
        padding: 60px 5%;
    }

    .lightbox-prev {
        left: 20px;
    }
    
    .lightbox-next {
        right: 20px;
    }
}

@media (max-width: 768px) {
    .gallery-hero {
        padding: 220px 5% 80px;
        min-height: 100vh;
    }

    .gallery-hero .hero-content {
        align-items: flex-start;
        margin-top: -4rem;
    }

    .gallery-hero .hero-features {
        flex-direction: row;
        gap: 10px;
        align-items: stretch;
        margin-top: 1.5rem;
    }

    .gallery-hero .feature-tag {
        width: auto;
        flex: 1;
    }

    .gallery-hero h1 {
        font-size: 2.5rem;
    }

    .lightbox-prev,
    .lightbox-next {
        width: 44px;
        height: 44px;
        font-size: 1rem;
    }
    
    .lightbox-prev {
        left: 10px;
        background: var(--dark-overlay-60);
    }
    
    .lightbox-next {
        right: 10px;
        background: var(--dark-overlay-60);
    }
    
    .lightbox-close {
        top: 20px;
        right: 20px;
    }
}

@media (max-width: 576px) {
    /* Match style.css hero 576px */
    .gallery-hero {
        padding: 180px 5% 70px;
        min-height: 100svh;
    }

    .gallery-hero h1 {
        font-size: clamp(1.8rem, 8vw, 2.2rem);
        word-wrap: break-word;
        overflow-wrap: break-word;
        hyphens: auto;
    }

    .gallery-hero p {
        font-size: 0.95rem;
        margin-bottom: 2rem;
    }

    .gallery-hero .hero-btns {
        max-width: 100%;
    }

    .gallery-hero .feature-tag {
        padding: 0.8rem 0.4rem;
        gap: 0.5rem;
    }

    .gallery-hero .feature-tag i {
        font-size: 1.2rem;
    }

    .gallery-hero .feature-tag .tag-text h4 {
        font-size: 0.75rem;
        word-wrap: break-word;
        overflow-wrap: break-word;
        hyphens: auto;
    }

    .gallery-hero .feature-tag .tag-text p {
        font-size: 0.6rem;
    }

    .gallery-filters {
        gap: 8px;
        margin-bottom: 30px;
    }

     .gallery-hero .hero-actions .cta-button {
        width: 100%;
        max-width: 330px; /* adjust width here */
        padding: 16px 24px;
        text-align: center;
    }
}
    
    .filter-btn {
        padding: 8px 18px;
        font-size: 0.85rem;
    }

