/* TNA Gallery Styles */
.tna-gallery-wrapper {
    margin-bottom: 20px;
    width: 100%;
}

/* 1. Hero Layout (Original) */
.tna-layout-hero {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    grid-template-rows: 200px 200px;
    gap: 4px;
    border-radius: 8px;
    overflow: hidden;
}

.tna-hero-item {
    position: relative;
    cursor: pointer;
    overflow: hidden;
}

.tna-hero-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
    display: block;
}

.tna-hero-item:hover img { transform: scale(1.05); }

.tna-hero-item-1 { grid-column: 1 / 2; grid-row: 1 / 3; }
.tna-hero-item-2 { grid-column: 2 / 3; grid-row: 1 / 2; }
.tna-hero-item-3 { grid-column: 3 / 4; grid-row: 1 / 2; }
.tna-hero-item-4 { grid-column: 2 / 3; grid-row: 2 / 3; }
.tna-hero-item-5 { grid-column: 3 / 4; grid-row: 2 / 3; }

.tna-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    font-weight: bold;
}

.tna-overlay svg {
    width: 24px;
    height: 24px;
    margin-right: 5px;
    vertical-align: middle;
}

/* 2. Grid Layout */
.tna-layout-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 10px;
}

.tna-grid-item {
    cursor: pointer;
    border-radius: 8px;
    overflow: hidden;
    aspect-ratio: 1;
}

.tna-grid-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.tna-grid-item:hover img { transform: scale(1.05); }

/* 3. Masonry Layout */
.tna-layout-masonry {
    column-count: 3;
    column-gap: 10px;
}

.tna-masonry-item {
    break-inside: avoid;
    margin-bottom: 10px;
    cursor: pointer;
    border-radius: 8px;
    overflow: hidden;
}

.tna-masonry-item img {
    width: 100%;
    display: block;
    transition: transform 0.3s ease;
}

.tna-masonry-item:hover img { transform: scale(1.05); }

/* 4. Carousel Layout */
.tna-layout-carousel {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 10px;
    padding-bottom: 15px;
}

.tna-carousel-item {
    flex: 0 0 auto;
    width: 70%;
    max-width: 300px;
    scroll-snap-align: center;
    cursor: pointer;
    border-radius: 8px;
    overflow: hidden;
}

.tna-carousel-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.tna-carousel-item:hover img { transform: scale(1.05); }

.tna-layout-carousel::-webkit-scrollbar { height: 8px; }
.tna-layout-carousel::-webkit-scrollbar-track { background: #f1f1f1; border-radius: 4px; }
.tna-layout-carousel::-webkit-scrollbar-thumb { background: #bbb; border-radius: 4px; }
.tna-layout-carousel::-webkit-scrollbar-thumb:hover { background: #888; }


/* Lightbox Styles (Unchanged) */
.tna-lightbox {
    position: fixed;
    z-index: 999999;
    padding-top: 50px;
    left: 0; top: 0; width: 100%; height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.tna-lightbox-content {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 90%;
    max-width: 1000px;
    height: 80vh;
}

.tna-lightbox-content img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    animation: zoomIn 0.3s ease;
}

.tna-lightbox-close {
    position: absolute;
    top: 20px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
}

.tna-lightbox-close:hover { color: #bbb; }

.tna-prev, .tna-next {
    cursor: pointer;
    position: absolute;
    top: 50%;
    width: auto;
    padding: 16px;
    margin-top: -50px;
    color: white;
    font-weight: bold;
    font-size: 24px;
    transition: 0.3s ease;
    border-radius: 0 3px 3px 0;
    user-select: none;
    -webkit-user-select: none;
    background-color: rgba(0,0,0,0.5);
    border: none;
}

.tna-prev { left: 0; border-radius: 3px 0 0 3px; }
.tna-next { right: 0; border-radius: 0 3px 3px 0; }
.tna-prev:hover, .tna-next:hover { background-color: rgba(0,0,0,0.8); }

#tna-caption {
    margin-top: 15px;
    color: #ccc;
    font-size: 16px;
    text-align: center;
}

@keyframes zoomIn {
    from {transform: scale(0.9)} 
    to {transform: scale(1)}
}

/* Responsive */
@media screen and (max-width: 768px) {
    .tna-layout-hero {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: 250px 150px 150px;
    }
    .tna-hero-item-1 { grid-column: 1 / 3; grid-row: 1 / 2; }
    .tna-hero-item-2 { grid-column: 1 / 2; grid-row: 2 / 3; }
    .tna-hero-item-3 { grid-column: 2 / 3; grid-row: 2 / 3; }
    .tna-hero-item-4 { grid-column: 1 / 2; grid-row: 3 / 4; }
    .tna-hero-item-5 { grid-column: 2 / 3; grid-row: 3 / 4; }
    
    .tna-layout-masonry { column-count: 2; }
}
@media screen and (max-width: 480px) {
    .tna-layout-masonry { column-count: 1; }
}
