/* =========================================================
   TVAlbums – ALBUM LISTING PAGE (GRID ONLY)
   Shows 4 albums per row  (UNCHANGED)
   ========================================================= */

.tvalbums-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin: 30px 0;
    width: 100%;
}

/* Responsive album grid */
@media (max-width: 1200px) {
    .tvalbums-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 768px) {
    .tvalbums-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
    .tvalbums-grid { grid-template-columns: 1fr; }
}

/* Album Card */
.tvalbum-item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,.1);
    transition: transform .3s ease, box-shadow .3s ease;
}
.tvalbum-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0,0,0,.2);
}

.tvalbum-link { text-decoration: none; color: inherit; display: block; }

.tvalbum-thumbnail {
    position: relative;
    padding-bottom: 75%;
    overflow: hidden;
    background: #f0f0f0;
}
.tvalbum-thumbnail img {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .3s ease;
}
.tvalbum-item:hover .tvalbum-thumbnail img {
    transform: scale(1.1);
}

.tvalbum-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 15px;
    background: linear-gradient(to top, rgba(0,0,0,.7), transparent);
    opacity: 0;
    transition: opacity .3s ease;
}
.tvalbum-item:hover .tvalbum-overlay { opacity: 1; }

.tvalbum-count { color: #fff; font-size: 14px; font-weight: 500; }

.tvalbum-title {
    padding: 15px;
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: #333;
    background: #fff;
}


/* =========================================================
   ALBUM DETAIL PAGE WRAPPER
   ========================================================= */

.tvalbum-detail-wrapper {
    width: 100%;
    padding: 40px 0 60px;
    clear: both;
}
.tvalbum-detail-container {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    padding: 0 20px;
}

/* Title */
.tvalbum-detail-title {
    text-align: center;
    font-size: 42px;
    font-weight: 300;
    margin-bottom: 50px;
    line-height: 1.2;
}
@media (max-width: 768px) {
    .tvalbum-detail-title { font-size: 32px; margin-bottom: 30px; }
}


/* =========================================================
   ? TRUE MASONRY (NO GAPS) – DETAIL PAGE ONLY
   ========================================================= */

.tvalbum-detail-page .tvalbum-masonry-grid {
    column-count: 5;
    column-gap: 15px;
}

/* Masonry item */
.tvalbum-detail-page .tvalbum-masonry-item {
    display: inline-block;
    width: 100%;
    margin-bottom: 15px;

    break-inside: avoid;
    -webkit-column-break-inside: avoid;
    -moz-column-break-inside: avoid;

    border-radius: 8px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,.1);
    transition: transform .25s ease, box-shadow .25s ease;
}

.tvalbum-detail-page .tvalbum-masonry-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 24px rgba(0,0,0,.18);
    cursor: pointer;
}

.tvalbum-detail-page .tvalbum-masonry-item img {
    width: 100%;
    height: auto;
    display: block;
}


/* =========================================================
   RESPONSIVE MASONRY COLUMNS
   ========================================================= */

@media (max-width: 1400px) {
    .tvalbum-detail-page .tvalbum-masonry-grid { column-count: 4; }
}
@media (max-width: 1024px) {
    .tvalbum-detail-page .tvalbum-masonry-grid { column-count: 3; }
}
@media (max-width: 768px) {
    .tvalbum-detail-page .tvalbum-masonry-grid { column-count: 2; }
}
@media (max-width: 480px) {
    .tvalbum-detail-page .tvalbum-masonry-grid { column-count: 1; }
}



/* =========================================================
   FORCE FULL WIDTH INSIDE THEME
   ========================================================= */

.tvalbum-detail-page .site-content,
.tvalbum-detail-page .entry-content,
.tvalbum-detail-page article {
    max-width: 100% !important;
    width: 100% !important;
}


/* =========================================================
   LIGHTBOX (UNCHANGED)
   ========================================================= */

.tvalbum-lightbox {
    display: none;
    position: fixed;
    z-index: 999999;
    inset: 0;
    background: rgba(0,0,0,.95);
}
.tvalbum-lightbox-content {
    position: relative;
    margin: auto;
    width: 90%;
    max-width: 1200px;
    top: 50%;
    transform: translateY(-50%);
    text-align: center;
}
#tvalbum-lightbox-image {
    max-width: 100%;
    max-height: 85vh;
    margin: 0 auto;
    border-radius: 4px;
}
.tvalbum-lightbox-close {
    position: absolute;
    top: 20px;
    right: 35px;
    color: #fff;
    font-size: 40px;
    cursor: pointer;
}
