/* Inspiration Gallery Styles */

.inspiration-gallery-wrapper {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
}

.gallery-title {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    font-size: 42px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 40px;
    text-align: left;
}

.inspiration-gallery-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    width: 100%;
}

/* Main Large Image Section */
.gallery-main-item {
    position: relative;
    width: 100%;
    height: 600px;
    min-height: 600px;
    overflow: hidden;
    border-radius: 8px;
    display: flex;
    align-items: stretch;
}

.main-image-overlay {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 100%;
    background-color: #000;
    display: flex;
    align-items: stretch;
}

.main-gallery-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    opacity: 0.4;
    transition: opacity 0.3s ease;
}

.overlay-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    z-index: 2;
}

.add-icon-circle {
    width: 120px;
    height: 120px;
    background-color: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.add-icon-circle:hover {
    transform: scale(1.1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.add-icon {
    font-size: 60px;
    font-weight: 300;
    color: #4ade80;
    line-height: 1;
}

.add-text {
    color: #ffffff;
    font-size: 18px;
    font-weight: 500;
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

/* Grid Section */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(3, 1fr);
    gap: 15px;
    height: 600px;
    min-height: 600px;
}

.gallery-grid-item {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
    border-radius: 8px;
    cursor: pointer;
    background-color: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gallery-grid-item:first-child {
    grid-column: 1 / 2;
    grid-row: 1 / 3;
}

.gallery-grid-item:nth-child(2) {
    grid-column: 2 / 3;
    grid-row: 1 / 2;
}

.gallery-grid-item:nth-child(3) {
    grid-column: 2 / 3;
    grid-row: 2 / 3;
}

.gallery-grid-item:nth-child(4) {
    grid-column: 1 / 2;
    grid-row: 3 / 4;
}

.gallery-grid-item:nth-child(5) {
    grid-column: 2 / 3;
    grid-row: 3 / 4;
}

.grid-gallery-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    min-height: 100%;
    min-width: 100%;
    transition: transform 0.3s ease;
}

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

.image-overlay-hover {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-grid-item:hover .image-overlay-hover {
    opacity: 1;
}

.view-icon {
    font-size: 40px;
    color: #ffffff;
}

/* Lightbox Styles */
.gallery-lightbox {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    overflow: auto;
}

.gallery-lightbox.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
    margin: auto;
    text-align: center;
}

#lightboxImage {
    max-width: 100%;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 4px;
}

.lightbox-close {
    position: absolute;
    top: 30px;
    right: 50px;
    color: #ffffff;
    font-size: 50px;
    font-weight: bold;
    cursor: pointer;
    z-index: 10000;
    transition: color 0.3s ease;
    line-height: 1;
}

.lightbox-close:hover {
    color: #4ade80;
}

.lightbox-prev,
.lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: #ffffff;
    font-size: 50px;
    font-weight: bold;
    cursor: pointer;
    z-index: 10000;
    padding: 20px;
    transition: color 0.3s ease;
    user-select: none;
}

.lightbox-prev {
    left: 30px;
}

.lightbox-next {
    right: 30px;
}

.lightbox-prev:hover,
.lightbox-next:hover {
    color: #4ade80;
}

/* Responsive Design */
@media (max-width: 768px) {
    .inspiration-gallery-container {
        grid-template-columns: 1fr;
    }
    
    .gallery-main-item {
        height: 400px;
    }
    
    .gallery-grid {
        height: auto;
        grid-template-columns: 1fr;
        grid-template-rows: auto;
    }
    
    .gallery-grid-item {
        height: 250px;
    }
    
    .gallery-grid-item:first-child,
    .gallery-grid-item:nth-child(2),
    .gallery-grid-item:nth-child(3),
    .gallery-grid-item:nth-child(4),
    .gallery-grid-item:nth-child(5) {
        grid-column: 1;
        grid-row: auto;
    }
    
    .gallery-title {
        font-size: 32px;
    }
    
    .add-icon-circle {
        width: 80px;
        height: 80px;
    }
    
    .add-icon {
        font-size: 40px;
    }
    
    .lightbox-close {
        top: 15px;
        right: 20px;
        font-size: 35px;
    }
    
    .lightbox-prev,
    .lightbox-next {
        font-size: 35px;
        padding: 10px;
    }
    
    .lightbox-prev {
        left: 10px;
    }
    
    .lightbox-next {
        right: 10px;
    }
}

