.photo-gallery-section {
    overflow: hidden;
}

.photo-gallery__subtitle {
    margin-bottom: 0.5rem;
}

.photo-gallery__title {
    margin-bottom: 1.5rem;
    color: var(--white-color);
}

@media (min-width: 768px) {
    .photo-gallery__title {
        margin-bottom: 2rem;
    }
}

.photo-gallery__filters {
    display: flex;
    flex-wrap: nowrap;
    justify-content: flex-start;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    gap: 0;
    margin-bottom: 2.5rem;
    background: transparent;
    width: 100%;
    max-width: 100%;
    padding: 0;
    position: relative;
    color: var(--white-color);
}

@media (min-width: 768px) {
    .photo-gallery__filters {
        flex-wrap: wrap;
        justify-content: center;
        overflow-x: visible;
        width: auto;
        margin-bottom: 3rem;
    }
}

/* Decorative line under filters */
.photo-gallery__filters::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 600px;
    height: 1px;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(64, 50, 38, 0.15) 20%, 
        rgba(64, 50, 38, 0.15) 80%, 
        transparent 100%
    );
}

@media (min-width: 768px) {
    .photo-gallery__filters::after {
        width: 80%;
    }
}

.photo-gallery__filters::-webkit-scrollbar {
    height: 0;
    display: none;
}

.photo-gallery__filter {
    flex-shrink: 0;
    white-space: nowrap;
    padding: 1rem 1.5rem;
    cursor: pointer;
    transition: all 0.35s ease;
    font-size: 0.9rem;
    font-weight: 500;
    position: relative;
    background: transparent;
    border: none;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

@media (min-width: 768px) {
    .photo-gallery__filter {
        padding: 1.25rem 2rem;
        font-size: 0.8rem;
        letter-spacing: 1.5px;
    }
}

/* Bottom indicator line */
.photo-gallery__filter::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: var(--secondary-color-100);
    transition: width 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Hover background */
.photo-gallery__filter::after {
    content: '';
    position: absolute;
    inset: 8px 4px;
    background: rgba(187, 154, 101, 0.08);
    border-radius: 4px;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}


.photo-gallery__filter:hover::after {
    opacity: 1;
}

.photo-gallery__filter--active {
    color: var(--white-color);
    font-weight: 600;
}

.photo-gallery__filter--active::before {
    width: calc(100% - 2rem);
}

.photo-gallery__filter--active::after {
    opacity: 0;
}

/* Separator dots between filters */
.photo-gallery__filter:not(:last-child)::marker {
    content: '';
}

@media (min-width: 768px) {
    .photo-gallery__filter {
        position: relative;
    }
    
    .photo-gallery__filter:not(:last-child) .photo-gallery__filter-separator {
        position: absolute;
        right: -2px;
        top: 50%;
        transform: translateY(-50%);
        width: 4px;
        height: 4px;
        background: rgba(64, 50, 38, 0.2);
        border-radius: 50%;
    }
}

.photo-gallery__grid {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 1rem;
}

@media (min-width: 640px) {
    .photo-gallery__grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.25rem;
    }
}

@media (min-width: 1024px) {
    .photo-gallery__grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.5rem;
    }
}

.photo-gallery__item {
    opacity: 1;
    transition: opacity 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.photo-gallery__item:hover {
    transform: translateY(-4px);
}

.photo-gallery__item[data-category].photo-gallery__item--hidden {
    display: none;
}

.photo-gallery__image-wrapper {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    aspect-ratio: 4 / 3;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: box-shadow 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

@media (min-width: 768px) {
    .photo-gallery__image-wrapper {
        border-radius: 16px;
    }
}

.photo-gallery__image-wrapper:hover {
    box-shadow: 0 12px 30px rgba(64, 50, 38, 0.18);
}

.photo-gallery__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.photo-gallery__image-wrapper:hover .photo-gallery__image {
    transform: scale(1.08);
}

.photo-gallery__overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        to bottom, 
        rgba(0, 0, 0, 0) 0%, 
        rgba(0, 0, 0, 0.2) 50%,
        rgba(64, 50, 38, 0.85) 100%
    );
    display: flex;
    align-items: flex-end;
    justify-content: flex-start;
    padding: 1rem;
    opacity: 0;
    transition: opacity 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

@media (min-width: 768px) {
    .photo-gallery__overlay {
        padding: 1.5rem;
    }
}

.photo-gallery__image-wrapper:hover .photo-gallery__overlay {
    opacity: 1;
}

.photo-gallery__overlay p {
    transform: translateY(10px);
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.1s;
}

.photo-gallery__image-wrapper:hover .photo-gallery__overlay p {
    transform: translateY(0);
}

.photo-gallery__overlay .ternary-button {
    transform: translateY(10px);
    opacity: 0;
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.2s,
                opacity 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.2s;
}

.photo-gallery__image-wrapper:hover .photo-gallery__overlay .ternary-button {
    transform: translateY(0);
    opacity: 1;
}

.photo-gallery__load-more-wrapper {
    margin-top: 2.5rem;
}

@media (min-width: 768px) {
    .photo-gallery__load-more-wrapper {
        margin-top: 3rem;
    }
}

.photo-gallery__load-more-btn {
    padding: 1rem 2.5rem;
    background: transparent;
    color: var(--primary-color-100);
    border: 2px solid var(--primary-color-100);
    border-radius: 0;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    font-size: 0.8rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

@media (min-width: 768px) {
    .photo-gallery__load-more-btn {
        padding: 1.125rem 3rem;
        font-size: 0.8rem;
    }
}

.photo-gallery__load-more-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 100%;
    bottom: 0;
    background: var(--primary-color-100);
    transition: right 1s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    z-index: -1;
}

.photo-gallery__load-more-btn:hover {
    color: #fff;
}

.photo-gallery__load-more-btn:hover::before {
    right: 0;
}

.photo-gallery__load-more-btn:active {
    transform: scale(0.98);
}

/* Alternative: Icon variant */
.photo-gallery__load-more-btn--icon {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.photo-gallery__load-more-btn--icon svg {
    width: 16px;
    height: 16px;
    transition: transform 0.3s ease;
}

.photo-gallery__load-more-btn--icon:hover svg {
    transform: translateY(3px);
}

.photo-gallery__item--hidden {
    display: none !important;
}

/* Zoom Button */
.photo-gallery__zoom-btn {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.95);
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    transform: scale(0.8);
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    z-index: 3;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.photo-gallery__zoom-btn svg {
    width: 20px;
    height: 20px;
    color: var(--primary-color-100);
}

.photo-gallery__image-wrapper:hover .photo-gallery__zoom-btn {
    opacity: 1;
    transform: scale(1);
}

.photo-gallery__zoom-btn:hover {
    background: var(--secondary-color-100);
}

.photo-gallery__zoom-btn:hover svg {
    color: #fff;
}

.photo-gallery__info {
    position: relative;
    z-index: 2;
}

/* Lightbox Styles */
.photo-gallery__lightbox {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.photo-gallery__lightbox--active {
    opacity: 1;
    visibility: visible;
}

.photo-gallery__lightbox-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.95);
    cursor: pointer;
}

.photo-gallery__lightbox-content {
    position: relative;
    z-index: 2;
    max-width: 90vw;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.photo-gallery__lightbox-image {
    max-width: 100%;
    max-height: 80vh;
    object-fit: contain;
    border-radius: 8px;
    opacity: 1;
    transition: opacity 0.3s ease;
}

.photo-gallery__lightbox--loading .photo-gallery__lightbox-image {
    opacity: 0.3;
}

.photo-gallery__lightbox-caption {
    margin-top: 1rem;
    color: #fff;
    font-size: 1rem;
    text-align: center;
    max-width: 600px;
}

.photo-gallery__lightbox-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 3;
    transition: all 0.3s ease;
}

.photo-gallery__lightbox-close svg {
    width: 24px;
    height: 24px;
    color: #fff;
}

.photo-gallery__lightbox-close:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(90deg);
}

.photo-gallery__lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 56px;
    height: 56px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 3;
    transition: all 0.3s ease;
}

.photo-gallery__lightbox-nav svg {
    width: 28px;
    height: 28px;
    color: #fff;
}

.photo-gallery__lightbox-nav:hover {
    background: var(--secondary-color-100);
    transform: translateY(-50%) scale(1.1);
}

.photo-gallery__lightbox-prev {
    left: 20px;
}

.photo-gallery__lightbox-next {
    right: 20px;
}

.photo-gallery__lightbox-counter {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    z-index: 3;
    background: rgba(0, 0, 0, 0.5);
    padding: 8px 16px;
    border-radius: 20px;
}

/* Lightbox Responsive */
@media (max-width: 768px) {
    .photo-gallery__lightbox-close {
        top: 10px;
        right: 10px;
        width: 40px;
        height: 40px;
    }
    
    .photo-gallery__lightbox-close svg {
        width: 20px;
        height: 20px;
    }
    
    .photo-gallery__lightbox-nav {
        width: 44px;
        height: 44px;
    }
    
    .photo-gallery__lightbox-nav svg {
        width: 22px;
        height: 22px;
    }
    
    .photo-gallery__lightbox-prev {
        left: 10px;
    }
    
    .photo-gallery__lightbox-next {
        right: 10px;
    }
    
    .photo-gallery__lightbox-caption {
        font-size: 0.9rem;
        padding: 0 1rem;
    }
    
    .photo-gallery__zoom-btn {
        width: 36px;
        height: 36px;
        top: 0.75rem;
        right: 0.75rem;
    }
    
    .photo-gallery__zoom-btn svg {
        width: 18px;
        height: 18px;
    }
}

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {
    .photo-gallery__item,
    .photo-gallery__image,
    .photo-gallery__overlay,
    .photo-gallery__overlay p,
    .photo-gallery__overlay .ternary-button,
    .photo-gallery__filter,
    .photo-gallery__load-more-btn,
    .photo-gallery__lightbox,
    .photo-gallery__lightbox-close,
    .photo-gallery__lightbox-nav,
    .photo-gallery__zoom-btn {
        transition: none;
    }
    
    .photo-gallery__item:hover,
    .photo-gallery__image-wrapper:hover .photo-gallery__image,
    .photo-gallery__load-more-btn:hover {
        transform: none;
    }
    
    .photo-gallery__lightbox-close:hover {
        transform: none;
    }
    
    .photo-gallery__lightbox-nav:hover {
        transform: translateY(-50%);
    }
}

