/* Общие стили для галереи */
.unique-gallery {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
    padding: 20px;
}

.unique-gallery-item {
    position: relative;
    width: calc(25% - 15px);
    cursor: pointer;
}

.unique-gallery-item img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    transition: transform 0.3s ease;
}

.unique-gallery-item:hover img {
    transform: scale(1.05);
}

@media (max-width: 768px) {
    .unique-gallery-item {
        width: calc(33.333% - 10px);
    }
}

@media (max-width: 480px) {
    .unique-gallery-item {
        width: calc(50% - 10px);
    }
}

/* Стили для модального окна */
.unique-modal {
    display: flex;
    justify-content: center;
    align-items: center;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 1000;
    overflow: auto;
    padding: 20px;
    box-sizing: border-box;
}

/* Измените максимальные размеры модального окна */
.unique-modal-content {
    max-width: 95%;   /* Увеличьте ширину модального окна */
    max-height: 95%;  /* Увеличьте высоту модального окна */
    background: var(--hntrgrnd-color);
    border-radius: 8px;
    overflow: hidden;
    text-align: left;
    padding: 20px;
    box-sizing: border-box;
}

/* Уменьшите высоту изображения внутри модального окна */
.unique-modal-content img {
    width: 100%;
    height: auto;
    max-height: 50vh;  /* Снизьте высоту изображения до 50% высоты экрана */
    border-radius: 8px;
    object-fit: contain;
}

.unique-modal-close {
    position: absolute;
    top: 5px;
    right: 5px;
    color: rgb(8,60,79,0.2);
    font-size: 30px;
    font-weight: bold;
    cursor: pointer;
}

/* Стили для текста описания */
.unique-modal-description {
    margin-top: 15px;
    color: #dde3f4;
    word-wrap: break-word;
    padding: 10px;
}

.unique-modal-description .title {
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 10px;
}

.unique-modal-description .year,
.unique-modal-description .size,
.unique-modal-description .materials,
.unique-modal-description .text {
    font-size: 16px;
    margin-bottom: 5px;
}
