﻿/* Main Album List (type_main = 1) */
.main-album .album-item {
    position: relative;
    background-color: #fff;
    border-radius: 6px;
    margin-bottom: 24px;
    overflow: hidden;
    border: 1px solid #e2e8f0;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.main-album .album-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(35, 49, 115, 0.12);
    border-color: #cbd5e1;
}

.main-album .album-thumb {
    position: relative;
    width: 100%;
    height: auto;
    overflow: hidden;
    padding-top: 66.66%;
    background-color: #f1f5f9;
}

.main-album .album-thumb img {
    position: absolute;
    right: 0;
    width: 100%;
    height: 100%;
    bottom: 0;
    left: 0;
    top: 0;
    object-position: 50% 50%;
    object-fit: cover;
    transform: translateZ(0);
    transition: transform 0.5s ease;
}

.main-album .album-item:hover .album-thumb img {
    -ms-transform: scale(1.06);
    transform: scale(1.06);
}

.main-album .album-item h3 {
    font-weight: 600;
    font-size: 16px;
    line-height: 1.45;
    padding: 14px 15px;
    margin: 0;
    text-align: center;
}

.main-album .album-item h3 a {
    color: #233173;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    min-height: 44px;
}

.main-album .album-item:hover h3 a {
    color: #ec1d25;
    text-decoration: none;
}

/* Album Detail View (view.tpl) */
.album-view {
    position: relative;
    background-color: #fff;
    padding: 0 0 15px 0;
    border-radius: 6px;
}

.album-view .view-heading {
    margin-bottom: 20px;
}

.album-view h1 {
    color: #233173;
    font-size: 20px;
    font-weight: 700;
    line-height: 1.4;
    padding-bottom: 10px;
    margin: 0 0 12px 0;
    border-bottom: 2px solid #ec1a20;
}

.album-view .description {
    display: block;
    margin-bottom: 15px;
    color: #475569;
    font-size: 15px;
    line-height: 1.6;
}

.album-view .row {
    margin-left: -8px;
    margin-right: -8px;
}

.album-view .row > div {
    padding-left: 8px;
    padding-right: 8px;
}

.album-view .item {
    position: relative;
    width: 100%;
    height: auto;
    overflow: hidden;
    padding-top: 66.66%;
    margin-bottom: 16px;
    border-radius: 6px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
    background-color: #f1f5f9;
}

.album-view .item img {
    position: absolute;
    right: 0;
    width: 100%;
    height: 100%;
    bottom: 0;
    left: 0;
    top: 0;
    object-position: 50% 50%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.album-view .item:hover img {
    transform: scale(1.06);
}

/* Main Album List with Pictures (main_list_pic.tpl - type_main = 2) */
.panel.panel-default .albumitem {
    padding: 8px;
    margin: 6px;
    background-color: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    transition: all 0.25s ease;
}

.panel.panel-default .albumitem:hover {
    box-shadow: 0 4px 12px rgba(35, 49, 115, 0.1);
    border-color: #cbd5e1;
}

.panel.panel-default .albumitem .imgcontent {
    margin-bottom: 8px;
    overflow: hidden;
    border-radius: 4px;
}

.panel.panel-default .albumitem .imgcontent img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border: 0;
    padding: 0;
    transition: transform 0.4s ease;
}

.panel.panel-default .albumitem:hover .imgcontent img {
    transform: scale(1.05);
}

.panel.panel-default .albumitem .green {
    font-size: 13px;
    color: #64748b;
}

/* Block Other Albums (block_other_albums.tpl) */
.list-album-main {
    width: 100%;
    float: none;
    margin-top: 25px;
}

.list-album-main .head-album h3 {
    font-size: 18px;
    font-weight: 700;
    text-transform: uppercase;
    color: #233173;
    border-bottom: 2px solid #ec1a20;
    padding-bottom: 8px;
    margin-bottom: 18px;
}

.list-album-main .content-wrap-album {
    margin-left: -8px;
    margin-right: -8px;
}

.list-album-main .albumitem-wrap {
    padding: 0 8px;
    margin-bottom: 16px;
    box-sizing: border-box;
}

.list-album-main .albumitem {
    background-color: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    text-align: center;
}

.list-album-main .albumitem:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(35, 49, 115, 0.12);
}

.list-album-main .albumitem .imgcontent {
    position: relative;
    width: 100%;
    padding-top: 66.66%;
    overflow: hidden;
    background-color: #f1f5f9;
}

.list-album-main .albumitem .imgcontent img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.list-album-main .albumitem:hover .imgcontent img {
    transform: scale(1.06);
}

.list-album-main .albumitem > a {
    display: block;
    padding: 12px 10px;
    font-weight: 600;
    font-size: 15px;
    color: #233173;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.list-album-main .albumitem:hover > a {
    color: #ec1d25;
    text-decoration: none;
}

/* Block New Albums Carousel (block_new_albums.tpl) */
.new-albums .item {
    position: relative;
    border-radius: 6px;
    overflow: hidden;
    border: 1px solid #e2e8f0;
    background-color: #fff;
}

.new-albums .item a {
    display: block;
    text-decoration: none;
}

.new-albums .item img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.new-albums .item:hover img {
    transform: scale(1.04);
}

.new-albums .item h3 {
    font-size: 15px;
    font-weight: 600;
    color: #233173;
    padding: 12px 10px;
    margin: 0;
    text-align: center;
    background-color: #f8fafc;
}

.new-albums .item:hover h3 {
    color: #ec1d25;
}

@media (max-width: 767.98px) {
    .list-album-main .albumitem-wrap,
    .panel.panel-default .pull-left {
        width: 50% !important;
    }
}

@media (max-width: 479.98px) {
    .list-album-main .albumitem-wrap,
    .panel.panel-default .pull-left {
        width: 100% !important;
    }
}
