/* Door Gallery Section Styles */
.door-gallery-section {
    margin: 0 -4px;
    padding: 71px 0px 46px;
    position: relative;
}

.door-gallery-section .content-header {
    padding-top: 1px;
    justify-content: space-between;
    margin-bottom: 15px;
}

.door-gallery-container {
    position: relative;
}

.door-gallery-grid-wrap {
}

/* Gallery Grid */
.door-gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 40px;
    margin: 0 -20px;
}

.door-gallery-grid .slick-list {
    overflow: visible;
}

.door-gallery-card-item {
    margin: 0;
    padding: 0 20px;
    height: 100%;
}

.door-gallery-card-item.slick-slide {
    margin: 0;
}

/* Gallery Card */
.door-gallery-card {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    height: 400px;
}

.door-gallery-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.gallery-card-wrapper {
    position: relative;
    width: 482px;
    height: 100%;
}

.gallery-image {
    width: 100%;
    height: auto;
    display: block;
    height: 100%;
    object-fit: cover;
}

.gallery-description {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px 20px 17px 20px;
    transform: translateY(0);
    transition: transform 0.3s ease;
    color: var(--Colors-bg, #FFF);
    font-feature-settings: 'liga' off, 'clig' off;
    /* Desk/H5 */
    font-family: NAMU;
    font-size: 25px;
    font-style: normal;
    font-weight: 800;
    line-height: normal;
}

.door-gallery-card:hover .gallery-description {
    transform: translateY(0);
}

/* Door Gallery Modal Styles */
.door-gallery-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    padding: 20px;
}

.door-gallery-modal-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
    display: flex;
    flex-direction: column;
}

.door-gallery-modal-close.btn-close {
    position: absolute;
    top: -40px;
    right: 0;
    z-index: 10000;
    background-color: white;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    padding: 5px;
}

.door-gallery-modal-body {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
}

.door-gallery-modal-image {
    max-width: 100%;
    max-height: 80vh;
    object-fit: contain;
}

/* Prevent scrolling when modal is open */
body.door-gallery-modal-open {
    overflow: hidden;
}

/* Tablet Styles */
@media (max-width: 991px) {
    .door-gallery-section {
        padding: 30px 15px;
    }

    .section-title {
        /* font-size: 32px; */
    }

    .main-title {
        font-size: 18px;
    }

    .door-gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .door-gallery-grid .slick-prev {
        left: -40px;
    }

    .door-gallery-grid .slick-next {
        right: -40px;
    }

    .gallery-cta-button {
        padding: 16px 28px;
        font-size: 18px;
    }

    .nav-content {
        gap: 10px;
    }

    .nav-buttons {
        gap: 15px;
    }

    .nav-button {
        width: 45px;
        height: 45px;
    }

    .arrow-icon {
        width: 35px;
        height: 35px;
    }

    /* Modal styles for tablets */
    .door-gallery-modal {
        padding: 10px;
    }

    .door-gallery-modal-content {
        max-width: 100%;
        max-height: 100%;
    }

    .door-gallery-modal-close.btn-close {
        top: -35px;
        right: 5px;
        width: 25px;
        height: 25px;
        padding: 3px;
    }
}

/* Mobile Styles */
@media (max-width: 767px) {
    .door-gallery-section {
        padding: 25px 10px;
    }

    .section-title {
        font-size: 12px;
        font-style: normal;
        font-weight: 400;
        line-height: 92%;
        /* 11.04px */
        letter-spacing: 4.8px;
    }

    .main-title {
        font-size: 16px;
    }

    .door-gallery-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .door-gallery-grid .slick-prev, .door-gallery-grid .slick-next {
        display: none !important;
    }

    .gallery-description {
        font-size: 18px;
        padding: 9px 12px 9px 12px;
    }

    .gallery-cta-section {
        margin-top: 25px;
    }

    .gallery-cta-button {
        padding: 14px 24px;
        font-size: 16px;
        width: 100%;
        max-width: 300px;
    }

    .nav-content {
        gap: 10px;
    }

    .nav-buttons {
        gap: 15px;
    }

    .nav-button {
        width: 45px;
        height: 45px;
    }

    .arrow-icon {
        width: 35px;
        height: 35px;
    }

    /* Modal styles for mobile */
    .door-gallery-modal {
        padding: 10px;
    }

    .door-gallery-modal-content {
        max-width: 100%;
        max-height: 100%;
    }

    .door-gallery-modal-close.btn-close {
        top: -35px;
        right: 5px;
        width: 25px;
        height: 25px;
        padding: 3px;
    }
}

@media (max-width: 640px) {
    .door-gallery-section {
        margin: 0;
        padding: 61px 0 0 0;
    }

    .door-gallery-section .content-header {
        margin-bottom: 12px;
    }

    .door-gallery-container {
    }

    .door-gallery-grid-wrap {
    }

    .door-gallery-grid {
        margin: 0 -8px;
    }

    .door-gallery-grid .slick-list {
    }

    .door-gallery-card-item {
        padding: 0 8px;
    }

    .door-gallery-grid .slick-slide {
        margin: 0;
    }

    .door-gallery-card {
    }

    .door-gallery-card:hover {
    }

    .gallery-card-wrapper {
        width: 272px;
    }

    .gallery-image {
    }

    .gallery-description {
    }

    .door-gallery-card:hover .gallery-description {
    }

    .door-gallery-modal {
    }

    .door-gallery-modal-content {
    }

    .door-gallery-modal-close.btn-close {
    }

    .door-gallery-modal-body {
    }

    .door-gallery-modal-image {
    }

    body.door-gallery-modal-open {
    }
}

.door-gallery-grid .slick-track {
    display: flex;
    align-items: stretch;
}

.door-gallery-grid .slick-slide {
    height: auto;
}

.door-gallery-grid .slick-slide>div {
    height: 100%;
}