/* ===========================================
   Стили для галереи альбомов
   =========================================== */
@import 'normalize.min.css';

/* Основной контейнер */
.gallery-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Заголовок галереи */
.gallery-header {
    text-align: center;
    margin-bottom: 30px;
}

.gallery-title {
    font-size: 2.5rem;
    color: #333;
    margin-bottom: 10px;
}

.gallery-subtitle {
    font-size: 1.2rem;
    color: #666;
    margin-bottom: 20px;
}

/* Сетка альбомов */
.albums-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

/* Карточка альбома */
.album-card {
    border-radius: 10px;
    cursor: pointer;
    position: relative;
}

.album-card p {
    width: 90%;
}

.album-card br {
    display: none;
}

/* Превью альбома */
.album-preview {
    width: 100%;
    height: 186px;
    border-radius: 10px;
    object-fit: cover;
    filter: grayscale(100%);
    transition: all 0.3s ease;
    cursor: pointer;
}

.album-card:hover .album-preview {
    filter: grayscale(0%);
    transform: scale(0.95);
}

/* Информация об альбоме */
.album-info {
    padding: 15px;
}

.album-title {
    font-size: 1.1rem;
    font-weight: bold;
    color: #333;
    margin-bottom: 5px;
}

.album-description {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 10px;
}

.album-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
    color: #999;
}

.album-size {
    background: #007bff;
    color: white;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.7rem;
}

/* Секция альбомов */
.album-section {
    display: grid;
    grid-template-columns: repeat(6, 280px);
    grid-gap: 20px;
}

/* Выпадающее меню альбомов */
.albums-dropdown-section {
    font-family: "PT Sans", sans-serif;
    display: none;
    transition: all 0.1s;
}

.albums-dropdown-section p {
    cursor: pointer;
    display: -webkit-box;           /* нужен для WebKit/Blink */
  -webkit-box-orient: vertical;   /* направление строк */
  -webkit-line-clamp: 4;          /* сколько строк оставить */
  overflow: hidden;               /* скрыть остальное */
}

.albums-dropdown-section__wrapper {
    display: flex;
    padding-top: 30px;
    margin: auto;
    width: 100%;
    justify-content: center;
}

/* Размер альбома */
#album-size {
    z-index: 100000;
    position: absolute;
    top: 10px;
    right: 20px;
    font-size: 18px;
}

/* Иконки */
.icon {
    display: block;
    width: 20px;
    height: 20px;
    background-position: center center;
    background-repeat: no-repeat;
    transition: 0.5s;
}

.icon.icon-arrow-right_blue {
    background-image: url('/static/img/gallery_arrow.svg');
}

/* Нано-галерея стили */
.nanogallery_gallerytheme_dark_nanogallery2 .nGY2GThumbnail_l1 {
    border: none !important;
}

.nGY2 .nGY2GThumbnail {
    background-color: transparent !important;
}

.nGY2GThumbnailIconText {
    color: white !important;
}

/* Виджет превью */
.sp-widget-preview img {
    max-width: 300px;
}

.glade-header {
    padding: 20px;
}

/* Заголовок галереи */
.sp-gallery__title {
    display: flex;
    color: black !important;
    font-family: 'PT-Sans', sans-serif;
    font-size: 16px;
    font-weight: normal;
}

.sp-gallery__title p {
    margin: 0;
    padding-left: 10px;
}

/* ===========================================
   Адаптивные стили
   =========================================== */

/* Планшеты */
@media (min-width: 600px) {
    .sp-widget-preview img {
        max-width: 300px;
    }
}

/* Десктоп */
@media (min-width: 950px) {
    .sp-widget-preview {
        width: 300px;
    }
}

/* Мобильные устройства */
@media (max-width: 768px) {
    .albums-grid {
        grid-template-columns: 1fr;
    }
    
    .gallery-title {
        font-size: 2rem;
    }
    
    .gallery-subtitle {
        font-size: 1rem;
    }
}

/* Маленькие мобильные устройства */
@media (max-width: 500px) {
    .gallery-container {
        padding: 10px;
    }
    
    .gallery-title {
        font-size: 1.8rem;
    }

    .album-section {
        grid-template-columns: repeat(1, 1fr);
        padding: 20px;
    }

    .album-preview {
        width: 100%;
    }

    #album-size {
        right: 10px !important;
    }

    .sp-gallery__title {
        display: block;
    }

    .sp-gallery__title p {
        padding-left: 0;
    }
}
