/* Photography Single Template Styles */
.photography-single {
    background: #080808;
    color: #fff;
    padding: 5rem 0;
    min-height: 100vh;
}

.container-wide {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

.photo-header {
    text-align: center;
    margin-bottom: 5rem;
}

.photo-title {
    font-size: 3.5rem;
    font-weight: 900;
    letter-spacing: -2px;
    margin-bottom: 1rem;
}

.photo-excerpt {
    font-size: 1.1rem;
    opacity: 0.6;
    max-width: 700px;
    margin: 0 auto;
}

/* WP Gallery Mosaic Grid */
.wp-block-gallery.wp-block-gallery {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)) !important;
    grid-auto-rows: 400px !important;
    gap: 20px !important;
    margin: 4rem 0 !important;
    flex-wrap: nowrap !important;
}

.wp-block-gallery .wp-block-image {
    margin: 0 !important;
    width: 100% !important;
    height: 100% !important;
    display: block !important;
}

.wp-block-gallery .wp-block-image figure {
    width: 100% !important;
    height: 100% !important;
    margin: 0 !important;
}

.wp-block-gallery .wp-block-image a,
.wp-block-gallery .wp-block-image img {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    border-radius: 15px;
    transition: 0.6s;
    cursor: zoom-in;
}

@media (min-width: 900px) {
    .wp-block-gallery .wp-block-image:nth-child(5n+1) {
        grid-column: span 2;
        grid-row: span 2;
    }

    .wp-block-gallery .wp-block-image:nth-child(5n+5) {
        grid-column: span 2;
    }
}

/* Lightbox & Swiper */
.photo-lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.96);
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(20px);
}

.lightbox-close {
    position: absolute;
    top: 30px;
    right: 40px;
    font-size: 3.5rem;
    color: #fff;
    cursor: pointer;
    z-index: 10001;
    opacity: 0.5;
    transition: 0.3s;
}

.lightbox-close:hover {
    opacity: 1;
    transform: rotate(90deg);
}

.photo-swiper {
    width: 100%;
    height: 90vh;
    padding: 20px 0;
    display: flex;
    align-items: center;
}

.photo-swiper .swiper-slide {
    width: 700px;
    height: 80vh;
    border-radius: 25px;
    overflow: hidden;
}

.photo-swiper .swiper-slide img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #000;
}

.swiper-slide-shadow-left,
.swiper-slide-shadow-right {
    border-radius: 25px;
}

.swiper-nav-buttons {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column; /* Đảm bảo xếp chồng theo chiều dọc */
    align-items: center;
    gap: 15px; /* Khoảng cách giữa số đếm và hàng nút bấm */
    z-index: 10;
}

.gallery-counter {
    text-align: center;
    font-size: 0.9rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.6);
    text-transform: uppercase;
    letter-spacing: 2px;
}

.navigation-wrapper {
    display: flex;
    gap: 20px; /* Khoảng cách giữa nút Trước và Tiếp theo */
}

.swiper-button-prev-custom,
.swiper-button-next-custom {
    background: #ff004c;
    color: #fff;
    padding: 10px 15px;
    width: 150px;
    text-align: center;
    border-radius: 50px;
    font-weight: 800;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 10px 20px rgba(255, 0, 76, 0.3);
    transition: 0.3s;
}

.swiper-button-prev-custom:hover,
.swiper-button-next-custom:hover {
    background: #fff;
    color: #ff004c;
    transform: translateY(-5px);
}

@media (max-width: 1024px) {
    .photo-swiper .swiper-slide {
        width: 500px;
        height: 60vh;
    }
}

@media (max-width: 768px) {
    .photo-swiper {
        height: 70vh;
    }

    .photo-swiper .swiper-slide {
        width: 85%;
        height: 50vh;
    }

    .photo-title {
        font-size: 2.2rem;
    }
}