/* Product Design Page Styles */

/* Body background */
body {
    background: #F0F3F5;
}

/* Main Content Styles */
.main-content {
    min-height: 100vh;
    padding-top: 136px; /* 88px + 48px additional padding */
    padding-bottom: 104px;
    color: #000;
    display: flex;
    flex-direction: column;
    align-items: center;
    overflow-x: hidden;
}

/* Web Version Styles */
@media (min-width: 768px) {
    .main-content {
        padding-left: 0;
        padding-right: 0;
    }
}

/* Mobile Version Styles */
@media (max-width: 767px) {
    .main-content {
        padding-top: 32px;
        padding-left: 16px;
        padding-right: 16px;
    }
}

/* Gallery Container */
.gallery-container {
    width: 100%;
    max-width: none; /* No max-width constraint */
    margin: 0 auto;
}

/* Gallery Grid */
.gallery-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    justify-content: center;
    align-items: flex-start;
}

/* Gallery Item */
.gallery-item {
    width: 560px;
    height: 380px;
    border-radius: 56px;
    overflow: hidden;
    background: #FFFFFF;
    transition: transform 0.3s ease;
    cursor: pointer;
    flex-shrink: 0;
}

.gallery-item:hover {
    transform: translateY(-4px);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
    display: block;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

/* Mobile Version */
@media (max-width: 767px) {
    .gallery-grid {
        gap: 16px;
        justify-content: center;
    }
    
    .gallery-item {
        width: 100%;
        height: auto;
        aspect-ratio: 560 / 380;
        max-width: 100%;
        border-radius: 56px;
    }
}

/* Tablet Version */
@media (min-width: 768px) and (max-width: 1023px) {
    .gallery-item {
        width: calc(50% - 12px);
        height: auto;
        aspect-ratio: 560 / 380;
        border-radius: 56px;
    }
}

/* High Resolution Version */
@media (min-width: 1600px) {
    .gallery-container {
        max-width: none; /* No max-width constraint */
    }
    
    .gallery-item {
        width: 560px; /* Keep fixed width for consistency */
    }
}

@media (min-width: 2000px) {
    .gallery-item {
        width: 560px; /* Keep fixed width for consistency */
    }
}

/* Image Modal Styles */
.image-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(4px);
}

.image-modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
}

.image-modal-content {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    border-radius: 16px;
}

.image-modal-close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: white;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    z-index: 1001;
}

.image-modal-close:hover {
    opacity: 0.7;
}

/* Scroll Animation Styles */
.gallery-item {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.gallery-item.animate {
    opacity: 1;
    transform: translateY(0);
}