/* =========================================
NEIRA CLEANING SERVICES
GALLERY PAGE STYLESHEET
========================================= */

/* GALLERY HERO */

.gallery-hero {
padding: 75px 0 85px;
}

.gallery-hero-grid {
display: grid;
grid-template-columns: 1fr 1fr;
align-items: center;
gap: 65px;
}

.gallery-hero-content h1 {
font-family: var(--heading-font);
color: var(--primary);
font-size: clamp(45px, 5vw, 67px);
line-height: 1.12;
letter-spacing: -1.5px;
margin-bottom: 23px;
}

.gallery-hero-content h1 span {
display: block;
font-style: italic;
}

.gallery-hero-content > p {
color: var(--muted);
font-size: 14px;
line-height: 1.9;
max-width: 470px;
margin-bottom: 28px;
}

.gallery-hero-buttons {
display: flex;
flex-wrap: wrap;
gap: 12px;
}

.gallery-hero-image {
position: relative;
}

.gallery-hero-image > img {
height: 410px;
border-radius: 25px;
}

.gallery-hero-label {
position: absolute;
bottom: 20px;
left: -25px;
display: flex;
align-items: center;
gap: 13px;
background: var(--white);
padding: 16px 21px;
border-radius: 15px;
box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.gallery-hero-label > span {
width: 40px;
height: 40px;
background: var(--lime);
color: var(--primary);
display: grid;
place-items: center;
border-radius: 50%;
}

.gallery-hero-label strong,
.gallery-hero-label small {
display: block;
}

.gallery-hero-label strong {
color: var(--primary);
font-size: 13px;
}

.gallery-hero-label small {
color: var(--muted);
font-size: 10px;
}

/* GALLERY INTRO */

.gallery-intro {
display: grid;
grid-template-columns: 1fr 0.8fr;
align-items: end;
gap: 50px;
padding-bottom: 55px;
}

.gallery-intro h2 {
font-family: var(--heading-font);
color: var(--primary);
font-size: clamp(31px, 4vw, 43px);
line-height: 1.25;
}

.gallery-intro > p {
color: var(--muted);
font-size: 13px;
line-height: 1.9;
}

/* PROJECT GALLERY */

.project-gallery {
background: var(--soft-green);
}

/* FILTERS */

.gallery-filters {
display: flex;
flex-wrap: wrap;
gap: 10px;
margin-bottom: 35px;
}

.filter-btn {
border: 1px solid #d5dfd0;
background: var(--white);
color: var(--primary);
padding: 11px 18px;
border-radius: 30px;
font-family: var(--body-font);
font-size: 11px;
font-weight: 600;
cursor: pointer;
transition: 0.3s ease;
}

.filter-btn:hover {
border-color: var(--primary);
}

.filter-btn.active {
background: var(--primary);
color: var(--white);
border-color: var(--primary);
}

/* PROJECT GRID */

.projects-grid {
display: grid;
grid-template-columns: repeat(3, 1fr);
gap: 22px;
}

.project-card {
background: var(--white);
border-radius: 17px;
overflow: hidden;
transition: 0.3s ease;
animation: galleryAppear 0.4s ease;
}

.project-card:hover {
transform: translateY(-5px);
box-shadow: 0 12px 30px rgba(6, 75, 53, 0.09);
}

.project-card[hidden] {
display: none;
}

@keyframes galleryAppear {

from {
    opacity: 0;
    transform: translateY(10px);
}

to {
    opacity: 1;
    transform: translateY(0);
}

}

/* PROJECT IMAGES */

.project-image {
position: relative;
display: block;
width: 100%;
height: 245px;
padding: 0;
border: none;
background: var(--soft-green);
overflow: hidden;
cursor: pointer;
}

.project-image img {
width: 100%;
height: 100%;
object-fit: cover;
transition: transform 0.5s ease;
}

.project-card:hover .project-image img {
transform: scale(1.07);
}

.project-view {
position: absolute;
right: 15px;
bottom: 15px;
width: 40px;
height: 40px;
background: var(--lime);
color: var(--primary);
border-radius: 50%;
display: grid;
place-items: center;
font-size: 19px;
opacity: 0;
transform: translateY(8px);
transition: 0.3s ease;
}

.project-card:hover .project-view,
.project-image:focus-visible .project-view {
opacity: 1;
transform: translateY(0);
}

/* PROJECT DETAILS */

.project-info {
display: flex;
justify-content: space-between;
align-items: center;
padding: 18px 19px;
}

.project-category {
display: block;
color: #7e9b6a;
font-size: 9px;
font-weight: 700;
letter-spacing: 1px;
margin-bottom: 6px;
}

.project-info h3 {
font-family: var(--heading-font);
color: var(--primary);
font-size: 18px;
}

.project-arrow {
color: var(--primary);
font-size: 20px;
}

/* EMPTY STATE */

.gallery-empty {
text-align: center;
padding: 65px 20px;
background: var(--white);
border-radius: 17px;
}

.gallery-empty[hidden] {
display: none;
}

.gallery-empty > span {
display: grid;
place-items: center;
width: 50px;
height: 50px;
margin: 0 auto 15px;
border-radius: 50%;
background: var(--soft-green);
color: var(--primary);
font-size: 22px;
}

.gallery-empty h3 {
font-family: var(--heading-font);
color: var(--primary);
font-size: 23px;
margin-bottom: 8px;
}

.gallery-empty p {
color: var(--muted);
font-size: 12px;
}

/* GALLERY MESSAGE */

.gallery-message {
display: grid;
grid-template-columns: 1fr 1fr;
align-items: center;
gap: 60px;
padding-top: 85px;
padding-bottom: 85px;
}

.gallery-message-content h2 {
font-family: var(--heading-font);
color: var(--primary);
font-size: clamp(32px, 4vw, 43px);
line-height: 1.25;
margin-bottom: 17px;
}

.gallery-message-content > p {
color: var(--muted);
font-size: 13px;
line-height: 1.9;
margin-bottom: 25px;
}

.gallery-message-image img {
height: 350px;
border-radius: 22px;
}

/* GALLERY CTA */

.gallery-cta {
text-align: center;
padding: 65px 25px;
margin-bottom: 80px;
background: var(--lime);
border-radius: 25px;
}

.gallery-cta h2 {
font-family: var(--heading-font);
color: var(--primary);
font-size: clamp(31px, 4vw, 44px);
margin-bottom: 14px;
}

.gallery-cta > p {
max-width: 490px;
margin: 0 auto 25px;
color: #426046;
font-size: 13px;
line-height: 1.8;
}

/* LIGHTBOX */

.lightbox {
position: fixed;
inset: 0;
z-index: 2000;
display: none;
justify-content: center;
align-items: center;
padding: 35px 90px;
background: rgba(2, 22, 15, 0.96);
}

.lightbox.open {
display: flex;
}

body.lightbox-open {
overflow: hidden;
}

.lightbox-content {
width: min(950px, 100%);
max-height: 90vh;
display: flex;
flex-direction: column;
align-items: center;
}

.lightbox-content img {
max-width: 100%;
width: auto;
max-height: 70vh;
object-fit: contain;
border-radius: 12px;
}

.lightbox-caption {
width: 100%;
text-align: center;
padding: 19px 10px 0;
}

.lightbox-caption h3 {
font-family: var(--heading-font);
color: var(--white);
font-size: 22px;
margin-bottom: 5px;
}

.lightbox-caption p {
color: #bdcec3;
font-size: 12px;
}

.lightbox-close {
position: absolute;
top: 20px;
right: 30px;
background: transparent;
border: none;
color: var(--white);
font-size: 40px;
cursor: pointer;
line-height: 1;
}

.lightbox-nav {
position: absolute;
top: 50%;
transform: translateY(-50%);
width: 48px;
height: 48px;
border: none;
border-radius: 50%;
background: var(--lime);
color: var(--primary);
font-size: 18px;
cursor: pointer;
transition: 0.3s ease;
}

.lightbox-nav:hover {
background: var(--white);
}

.lightbox-prev {
left: 25px;
}

.lightbox-next {
right: 25px;
}

/* TABLETS */

@media (max-width: 950px) {

.projects-grid {
    grid-template-columns: repeat(2, 1fr);
}

.gallery-hero-grid,
.gallery-message {
    gap: 35px;
}

}

/* MOBILE */

@media (max-width: 650px) {

.gallery-hero {
    padding: 55px 0 65px;
}

.gallery-hero-grid {
    grid-template-columns: 1fr;
    gap: 40px;
}

.gallery-hero-content h1 {
    font-size: 45px;
}

.gallery-hero-content > p {
    font-size: 13px;
}

.gallery-hero-buttons {
    flex-direction: column;
}

.gallery-hero-buttons .btn {
    width: 100%;
}

.gallery-hero-image > img {
    height: 290px;
    border-radius: 19px;
}

.gallery-hero-label {
    left: 12px;
    bottom: 12px;
    padding: 12px 15px;
}

.gallery-intro {
    grid-template-columns: 1fr;
    gap: 15px;
    padding-bottom: 40px;
}

.gallery-intro h2 {
    font-size: 32px;
}

.gallery-filters {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 12px;
    scrollbar-width: thin;
}

.filter-btn {
    flex-shrink: 0;
}

.projects-grid {
    grid-template-columns: 1fr;
    gap: 17px;
}

.project-image {
    height: 240px;
}

.project-view {
    opacity: 1;
    transform: none;
}

.gallery-message {
    grid-template-columns: 1fr;
    gap: 30px;
    padding-top: 60px;
    padding-bottom: 60px;
}

.gallery-message-image img {
    height: 280px;
}

.gallery-cta {
    padding: 45px 20px;
    margin-bottom: 55px;
}

.lightbox {
    padding: 60px 15px;
}

.lightbox-content img {
    max-height: 65vh;
}

.lightbox-close {
    top: 15px;
    right: 18px;
    font-size: 35px;
}

.lightbox-nav {
    top: auto;
    bottom: 25px;
    width: 43px;
    height: 43px;
}

.lightbox-prev {
    left: calc(50% - 55px);
}

.lightbox-next {
    right: calc(50% - 55px);
}

}

/* SMALL PHONES */

@media (max-width: 380px) {

.gallery-hero-content h1 {
    font-size: 39px;
}

.project-info h3 {
    font-size: 16px;
}

}
