/* ============================================
   FASHION SECTION STYLES
   ============================================ */

/* Bo tròn 4 góc cho ảnh trong bài viết fashion_album */
.post-type-fashion_album .entry-content img,
.post-type-fashion_album .post-content img,
.post-type-fashion_album article img,
body.post-type-fashion_album .entry-content img,
body.post-type-fashion_album .post-content img,
body.post-type-fashion_album article img,
.single-fashion_album .entry-content img,
.single-fashion_album .post-content img,
.single-fashion_album article img {
    border-radius: 20px !important;
}

.f-final-art-system {
    position: relative;
    max-width: 1400px;
    margin: 70px auto 40px;
    padding: 0 20px;
    transition: opacity 0.15s ease-out, filter 0.15s ease-out, transform 0.15s ease-out;
    transition-delay: 0s;
}

.f-final-art-system.f-section-hidden {
    opacity: 0.2;
    filter: blur(4px) brightness(0.3);
    transform: scale(0.98);
    pointer-events: none;
    z-index: 1;
}

/* Portal Navigation */
.f-portal-nav {
    display: flex;
    justify-content: space-between;
    padding: 0 10px;
    margin-bottom: 15px;
    position: relative;
    z-index: 100;
}

.f-portal-link {
    text-decoration: none !important;
    color: rgba(0, 255, 180, 0.4);
    font-size: 11px;
    letter-spacing: 4px;
    font-weight: 700;
    transition: 0.4s;
    position: relative;
    font-family: 'Quicksand', sans-serif;
}

.f-portal-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 1px;
    bottom: -3px;
    left: 0;
    background: #00ffb4;
    transition: 0.4s;
}

.f-portal-link:hover {
    color: #00ffb4 !important;
    text-shadow: 0 0 10px #00ffb4;
}

.f-portal-link:hover::after {
    width: 100%;
}

@media (max-width: 768px), (max-width: 1024px) and (orientation: portrait) {

    /* Mobile: apply lyric-like smooth scrolling to album images */
    .f-album-modal-body,
    .f-fashion-slider-container,
    .f-album-carousel .owl-stage-outer {
        -webkit-overflow-scrolling: touch;
        overscroll-behavior: contain;
        scrollbar-width: none !important;
        /* Firefox */
        -ms-overflow-style: none !important;
        /* IE/Edge */
    }

    .f-album-modal-body::-webkit-scrollbar,
    .f-fashion-slider-container::-webkit-scrollbar,
    .f-album-carousel .owl-stage-outer::-webkit-scrollbar {
        display: none !important;
        /* Chrome/Safari */
    }

    /* Horizontal touch scroll for album image strips */
    .f-fashion-slider-container,
    .f-album-carousel .owl-stage-outer {
        touch-action: pan-x;
    }
}

@media (max-width: 768px), (max-width: 1024px) and (orientation: portrait) {
    .f-portal-nav {
        display: none !important;
        visibility: hidden !important;
        opacity: 0 !important;
        height: 0 !important;
        margin: 0 !important;
        padding: 0 !important;
    }
}

/* Slider Container */
.f-mag-scroll {
    display: flex !important;
    gap: 25px;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 10px 5px 60px;
    cursor: grab;
    user-select: none;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    /* Firefox */
    -ms-overflow-style: none;
    /* IE/Edge */
}

.f-mag-scroll::-webkit-scrollbar {
    display: none;
    /* Chrome/Safari */
}

.f-mag-scroll:active {
    cursor: grabbing;
}

/* Card */
.f-mag-card {
    flex: 0 0 calc(23% - 18px);
    min-width: 260px;
    max-width: 300px;
}

/* Chỉ animate các cards gốc, không animate clones */
.f-mag-card:not(.f-clone-card) {
    opacity: 0;
    transform: translateY(-400px) scale(0.85);
    transition: opacity 1s cubic-bezier(0.34, 1.56, 0.64, 1),
        transform 1s cubic-bezier(0.34, 1.56, 0.64, 1);
    will-change: opacity, transform;
}

/* Animation khi vào trang - với bounce effect nhẹ */
.f-mag-card:not(.f-clone-card).f-animate-in {
    opacity: 1;
    transform: translateY(0) scale(1);
}

/* Stagger delay cho từng card - từ trái qua phải (chỉ áp dụng cho cards gốc) */
.f-mag-card:not(.f-clone-card).f-animate-in:nth-of-type(1) {
    transition-delay: 0.05s;
}

.f-mag-card:not(.f-clone-card).f-animate-in:nth-of-type(2) {
    transition-delay: 0.1s;
}

.f-mag-card:not(.f-clone-card).f-animate-in:nth-of-type(3) {
    transition-delay: 0.15s;
}

.f-mag-card:not(.f-clone-card).f-animate-in:nth-of-type(4) {
    transition-delay: 0.2s;
}

.f-mag-card:not(.f-clone-card).f-animate-in:nth-of-type(5) {
    transition-delay: 0.25s;
}

.f-mag-card:not(.f-clone-card).f-animate-in:nth-of-type(6) {
    transition-delay: 0.3s;
}

.f-mag-card:not(.f-clone-card).f-animate-in:nth-of-type(7) {
    transition-delay: 0.35s;
}

.f-mag-card:not(.f-clone-card).f-animate-in:nth-of-type(8) {
    transition-delay: 0.4s;
}

.f-mag-card:not(.f-clone-card).f-animate-in:nth-of-type(9) {
    transition-delay: 0.45s;
}

.f-mag-card:not(.f-clone-card).f-animate-in:nth-of-type(10) {
    transition-delay: 0.5s;
}

.f-mag-card:not(.f-clone-card).f-animate-in:nth-of-type(11) {
    transition-delay: 0.55s;
}

.f-mag-card:not(.f-clone-card).f-animate-in:nth-of-type(12) {
    transition-delay: 0.6s;
}

.f-mag-card:not(.f-clone-card).f-animate-in:nth-of-type(13) {
    transition-delay: 0.65s;
}

.f-mag-card:not(.f-clone-card).f-animate-in:nth-of-type(14) {
    transition-delay: 0.7s;
}

.f-mag-card:not(.f-clone-card).f-animate-in:nth-of-type(15) {
    transition-delay: 0.75s;
}

.f-mag-card:not(.f-clone-card).f-animate-in:nth-of-type(16) {
    transition-delay: 0.8s;
}

.f-mag-card:not(.f-clone-card).f-animate-in:nth-of-type(17) {
    transition-delay: 0.85s;
}

.f-mag-card:not(.f-clone-card).f-animate-in:nth-of-type(18) {
    transition-delay: 0.9s;
}

.f-mag-card:not(.f-clone-card).f-animate-in:nth-of-type(19) {
    transition-delay: 0.95s;
}

.f-mag-card:not(.f-clone-card).f-animate-in:nth-of-type(20) {
    transition-delay: 1.0s;
}

.f-mag-card:not(.f-clone-card).f-animate-in:nth-of-type(n+21) {
    transition-delay: 1.05s;
}

/* Đảm bảo cloned cards không có animation */
.f-mag-card.f-clone-card {
    opacity: 1 !important;
    transform: translateY(0) scale(1) !important;
    transition: none !important;
}

/* Album Border Box */
.f-album-border-box {
    border: 1px solid rgba(45, 74, 67, 0.6);
    border-radius: 12px;
    background: rgba(0, 0, 0, 0.3);
    transition: all 0.4s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.f-album-border-box:hover {
    border-color: #00ffb4;
    box-shadow: 0 0 25px rgba(0, 255, 180, 0.15);
    transform: translateY(-5px);
}

.f-mag-inner {
    display: flex;
    flex-direction: column;
    height: 100%;
}

/* Main Image Frame */
.f-mag-main-frame {
    position: relative;
    overflow: hidden;
    -webkit-mask-image: linear-gradient(to bottom, black 75%, transparent 100%);
    mask-image: linear-gradient(to bottom, black 75%, transparent 100%);
    border-radius: 12px 12px 0 0;
}

.f-mag-img {
    width: 100%;
    aspect-ratio: 3/4;
    background-size: cover;
    background-position: center;
    transition: transform 1.2s ease;
}

.f-album-border-box:hover .f-mag-img {
    transform: scale(1.1);
}

/* Overlay */
.f-mag-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 100px 10px 65px;
    text-align: center;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, transparent 100%);
}

.f-mag-overlay h3 {
    color: #fff !important;
    font-family: 'Quicksand', sans-serif !important;
    font-size: 19px !important;
    font-weight: 700;
    margin: 0;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.9);
    line-height: 1.3;
}

/* Sub Images Stack */
.f-mag-stack {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: -40px;
    position: relative;
    z-index: 3;
    padding: 0 15px;
}

.f-mag-sub-frame {
    background: #2d4a43;
    padding: 1px;
    border-radius: 4px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.6);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    flex: 0 0 auto;
}

.f-mag-sub-img {
    width: 52px;
    height: 70px;
    background-size: cover;
    background-position: center;
    border-radius: 3px;
    display: block;
}

.f-mag-sub-frame:hover {
    transform: translateY(-15px) rotate(-10deg) scale(1.15);
    background: #00ffb4;
    box-shadow: 0 0 20px rgba(0, 255, 180, 0.6);
}

.f-mag-sub-frame:nth-child(2):hover {
    transform: translateY(-15px) rotate(10deg) scale(1.15);
}

.f-mag-sub-frame:nth-child(3):hover {
    transform: translateY(-15px) rotate(-5deg) scale(1.15);
}

/* Footer Button */
.f-mag-footer {
    padding: 30px 15px 25px;
    text-align: center;
    margin-top: auto;
}

.f-mag-btn-neon {
    display: block;
    padding: 10px 0;
    border: 1px solid rgba(0, 255, 180, 0.3);
    color: #00ffb4;
    text-decoration: none;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    border-radius: 6px;
    transition: 0.4s;
    font-family: 'Quicksand', sans-serif;
}

.f-mag-btn-neon:hover {
    background: #00ffb4 !important;
    color: #000 !important;
    box-shadow: 0 0 20px rgba(0, 255, 180, 0.4);
    transform: translateY(-2px);
}

/* Navigation Buttons */
.f-mag-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: none !important;
    border: none !important;
    color: #00ffb4 !important;
    font-size: 70px !important;
    cursor: pointer;
    z-index: 100;
    opacity: 0.3;
    transition: 0.3s;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    padding: 0;
    font-family: 'Quicksand', sans-serif;
}

.f-mag-nav:hover {
    opacity: 1;
    text-shadow: 0 0 20px #00ffb4;
    transform: translateY(-50%) scale(1.1);
}

.f-prev-btn {
    left: -35px;
}

.f-next-btn {
    right: -35px;
}

/* No Posts Message */
.f-no-posts {
    text-align: center;
    padding: 60px 20px;
    color: rgba(247, 231, 206, 0.6);
    font-family: 'Quicksand', sans-serif;
    font-size: 16px;
}

/* ===============================
   Fashion Album Modal
   =============================== */
.f-album-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 99999;
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Đảm bảo modal luôn ở trên cùng khi mở */
.f-album-modal.f-modal-open {
    z-index: 100000;
}

.f-album-modal.f-modal-open {
    opacity: 1;
    pointer-events: auto;
}

.f-album-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(ellipse at center, rgba(0, 242, 173, 0.45) 0%, rgba(0, 200, 150, 0.55) 50%, rgba(0, 150, 200, 0.6) 100%);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    opacity: 0;
    transition: opacity 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.f-album-modal-overlay.f-overlay-visible {
    opacity: 1;
}

.f-album-modal-container {
    position: relative;
    z-index: 100000;
    background: linear-gradient(135deg, rgba(0, 242, 173, 0.8) 0%, rgba(0, 200, 150, 0.85) 50%, rgba(0, 150, 200, 0.8) 100%);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 2px solid rgba(0, 242, 173, 0.5);
    border-radius: 18px;
    width: 92%;
    max-width: 1100px;
    max-height: 90vh;
    box-shadow: 0 0 0 1px rgba(0, 242, 173, 0.25), 0 0 60px rgba(0, 242, 173, 0.4), inset 0 0 60px rgba(0, 242, 173, 0.12);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    opacity: 0;
    transform: scale(0.92) translateY(30px);
    transition: opacity 0.3s cubic-bezier(0.34, 1.56, 0.64, 1),
        transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    will-change: transform, opacity;
}

/* Larger container while loading to avoid clipped title */
.f-album-modal-container.f-loading {
    min-height: 65vh;
}

.f-album-modal-container.f-container-visible {
    opacity: 1;
    transform: scale(1) translateY(0);
}

.f-album-modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: transparent !important;
    border: none !important;
    color: #00ffb4;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 30px;
    line-height: 1;
    transition: all 0.3s ease;
    z-index: 1;
}

.f-album-modal-close:hover {
    transform: scale(1.08) rotate(90deg);
    text-shadow: 0 0 18px #00ffb4;
}

.f-album-modal-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: #F7E7CE;
    padding: 20px 24px 10px;
    margin: 0;
    text-align: center;
    text-shadow: 0 0 10px rgba(0, 242, 173, 0.45);
    letter-spacing: 2px;
    font-family: 'Quicksand', sans-serif;
}

/* Căn giữa title khi đang loading */
.f-album-modal-title.f-loading-title {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    padding: 0 !important;
    margin: 0 !important;
    width: auto;
    z-index: 10;
}

/* Loading title: larger to avoid clipping */
.f-album-modal-title.f-loading-title {
    font-size: 1.6rem;
    line-height: 1.4;
    max-width: 90%;
    text-align: center;
}

.f-album-modal-body {
    flex: 1;
    overflow-y: auto;
    padding: 16px 24px 24px;
}

.f-album-modal-body::-webkit-scrollbar {
    display: none;
    width: 0;
}

.f-album-modal-body {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/* Fashion Slider in Modal */
.f-fashion-slider {
    width: 100%;
    overflow: hidden;
}

.f-fashion-slider-container {
    display: flex;
    flex-direction: row;
    gap: 20px;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 10px 0;
    scrollbar-width: none;
    /* Firefox */
    -ms-overflow-style: none;
    /* IE/Edge */
    -webkit-overflow-scrolling: touch;
}

.f-fashion-slider-container::-webkit-scrollbar {
    display: none;
    /* Chrome/Safari */
}

.f-fashion-slide {
    flex: 0 0 auto;
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.f-fashion-slide-img {
    height: 100%;
    width: auto;
    object-fit: cover;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.f-fashion-slide-img:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 16px rgba(0, 255, 180, 0.3);
}

/* Image Zoom Lightbox */
.f-image-zoom-lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: radial-gradient(ellipse at center,
            rgba(0, 180, 140, 0.75) 0%,
            rgba(0, 150, 120, 0.85) 30%,
            rgba(0, 120, 100, 0.9) 60%,
            rgba(0, 100, 85, 0.95) 100%);
    backdrop-filter: blur(25px) saturate(180%);
    -webkit-backdrop-filter: blur(25px) saturate(180%);
    z-index: 999999;
    display: none;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.f-image-zoom-lightbox.active {
    display: flex;
}

.f-image-zoom-content {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.f-image-zoom-lightbox img {
    max-width: 90vw;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    animation: zoomIn 0.3s ease;
}

/* Mobile: cap zoom size to avoid glitches */
@media (max-width: 768px), (max-width: 1024px) and (orientation: portrait) {
    .f-image-zoom-lightbox {
        touch-action: none;
    }

    .f-image-zoom-content {
        max-width: 90vw;
        max-height: 90vh;
    }

    .f-image-zoom-lightbox img {
        max-width: 90vw;
        max-height: 90vh;
    }
}

@keyframes zoomIn {
    from {
        transform: scale(0.8);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

.f-image-zoom-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.5);
    color: #fff;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 30px;
    line-height: 1;
    transition: all 0.3s ease;
    z-index: 1000;
}

.f-image-zoom-close:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: #fff;
    transform: scale(1.1) rotate(90deg);
}

.f-image-zoom-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: transparent !important;
    border: none !important;
    color: #00ffb4 !important;
    font-size: 70px !important;
    cursor: pointer;
    z-index: 1000;
    opacity: 0.3;
    transition: 0.3s;
    width: auto;
    height: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    padding: 0;
    font-family: 'Quicksand', sans-serif;
}

.f-image-zoom-nav:hover {
    opacity: 1;
    text-shadow: 0 0 20px #00ffb4;
    transform: translateY(-50%) scale(1.1);
    background: transparent !important;
}

.f-image-zoom-prev {
    left: 30px;
}

.f-image-zoom-next {
    right: 30px;
}

.f-image-zoom-nav:disabled {
    opacity: 0.3;
    cursor: not-allowed;
    pointer-events: none;
}


.f-image-zoom-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.5);
    color: #fff;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 30px;
    line-height: 1;
    transition: all 0.3s ease;
    z-index: 1;
}

.f-image-zoom-close:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: #fff;
    transform: scale(1.1) rotate(90deg);
}

/* ============================================
   RESPONSIVE - MOBILE
   ============================================ */

@media (max-width: 1200px) {
    .f-mag-card {
        flex: 0 0 calc(33.333% - 17px);
        min-width: 260px;
    }

    .f-prev-btn {
        left: -10px;
        font-size: 50px !important;
    }

    .f-next-btn {
        right: -10px;
        font-size: 50px !important;
    }
}

/* Tablet */
@media (max-width: 1024px) {
    .f-final-art-system {
        margin: 60px auto 30px;
        padding: 0 20px;
        max-width: 100%;
    }

    .f-mag-scroll {
        flex-direction: column;
        overflow-x: hidden;
        overflow-y: auto;
        max-height: calc(100vh - 200px);
        gap: 20px;
        padding: 15px 10px;
    }

    .f-mag-card {
        flex: 0 0 auto;
        width: 100%;
        max-width: 400px;
        margin: 0 auto;
    }

    .f-prev-btn,
    .f-next-btn {
        display: none !important;
    }
}

@media (max-width: 900px) {
    .f-final-art-system {
        margin: 50px auto 30px;
        padding: 0 15px;
    }

    .f-mag-scroll {
        flex-direction: column;
        overflow-x: hidden;
        overflow-y: auto;
        max-height: calc(100vh - 180px);
        gap: 20px;
        padding: 15px 10px;
    }

    .f-mag-card {
        flex: 0 0 auto;
        width: 100%;
        max-width: 350px;
        margin: 0 auto;
    }

    .f-mag-overlay h3 {
        font-size: 16px !important;
        padding: 80px 8px 50px;
    }

    .f-mag-sub-img {
        width: 48px;
        height: 64px;
    }

    .f-mag-stack {
        gap: 6px;
        margin-top: -35px;
    }

    .f-mag-footer {
        padding: 20px 12px 20px;
    }

    .f-mag-btn-neon {
        font-size: 10px;
        padding: 8px 0;
    }

    .f-prev-btn,
    .f-next-btn {
        display: none !important;
    }

    /* Carousel responsive */
    .f-album-carousel .owl-item img {
        height: 400px !important;
    }

    .f-album-carousel .owl-item {
        padding: 20px 10px;
    }

    .f-album-carousel .owl-nav button {
        width: 40px !important;
        height: 40px !important;
        font-size: 20px;
    }

    .f-album-carousel .owl-nav button.owl-prev {
        left: 10px !important;
    }

    .f-album-carousel .owl-nav button.owl-next {
        right: 10px !important;
    }
}

/* Mobile Optimization: 2 columns grid with page scroll */
@media (max-width: 767px), (max-width: 1024px) and (orientation: portrait) {
    /* Hide scrollbars on fashion mobile list */
    #fashion,
    #fashion .f-final-art-system,
    #fashion .f-mag-scroll {
        scrollbar-width: none !important;
        -ms-overflow-style: none !important;
    }

    #fashion::-webkit-scrollbar,
    #fashion .f-final-art-system::-webkit-scrollbar,
    #fashion .f-mag-scroll::-webkit-scrollbar {
        display: none !important;
        width: 0 !important;
        height: 0 !important;
    }

    .f-final-art-system {
        margin: 90px auto 20px;
        padding: 0 10px;
    }

    .f-mag-scroll {
        flex-direction: row !important;
        flex-wrap: wrap !important;
        overflow-y: visible !important;
        /* Let page scroll */
        overflow-x: hidden !important;
        max-height: none !important;
        gap: 10px !important;
        padding: 0 0 80px 0 !important;
        display: flex !important;
        scrollbar-width: none !important;
        -ms-overflow-style: none !important;
    }

    .f-mag-scroll::-webkit-scrollbar {
        display: none !important;
    }

    .f-mag-card {
        flex: 0 0 calc(50% - 5px) !important;
        width: calc(50% - 5px) !important;
        max-width: none !important;
        min-width: 0 !important;
        margin: 0 0 20px 0 !important;
    }

    /* Optimize card internals */
    .f-mag-img {
        aspect-ratio: 3/4;
    }

    .f-mag-overlay {
        padding: 50px 5px 45px;
    }

    .f-mag-overlay h3 {
        font-size: 14px !important;
        line-height: 1.3;
        padding-bottom: 5px;
    }

    .f-mag-stack {
        margin-top: -30px;
        gap: 4px;
        padding: 0 5px;
        justify-content: center;
    }

    .f-mag-sub-frame {
        padding: 1px;
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4);
    }

    .f-mag-sub-img {
        width: 34px !important;
        height: 45px !important;
    }

    .f-mag-footer {
        padding: 12px 5px 12px;
    }

    .f-mag-btn-neon {
        font-size: 10px;
        padding: 6px 0;
        border-radius: 4px;
    }

    /* Hide "Xem Album" text/button on mobile */
    .f-mag-btn-neon {
        display: none !important;
    }

    /* Disable hover zoom on album list images (mobile) */
    .f-album-border-box:hover .f-mag-img,
    .f-mag-img:hover {
        transform: none !important;
    }

    /* Hide nav buttons completely on mobile */
    .f-mag-nav {
        display: none !important;
    }
}

/* Mobile: Album modal images in vertical scroll */
@media (max-width: 768px), (max-width: 1024px) and (orientation: portrait) {
    .f-album-modal-body {
        overflow-y: auto;
        overflow-x: hidden;
        -webkit-overflow-scrolling: touch;
        touch-action: pan-y;
        overscroll-behavior: contain;
    }

    .f-fashion-slider {
        overflow: visible;
    }

    .f-fashion-slider-container {
        flex-direction: column !important;
        align-items: center !important;
        gap: 12px !important;
        overflow: visible !important;
        padding: 0 !important;
        touch-action: pan-y;
    }

    .f-fashion-slide {
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }

    .f-fashion-slide-img {
        width: 100% !important;
        height: auto !important;
        max-width: 100% !important;
        object-fit: contain !important;
        border-radius: 12px;
        display: block;
    }

    .f-fashion-slide-img:hover {
        transform: none !important;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1) !important;
    }
}