/* Container for the widget */
.container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    /*height: 100vh;*/
    gap: 2rem;
    padding: 2rem;
}

.image-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    height: fit-content;
    overflow-y: auto;
    padding: 1rem;
}

.image-item {
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    box-shadow: rgba(149, 157, 165, 0.1) 0px 8px 14px;
    border-radius: 8px;
    padding: 10px;
}

.image-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 0.5rem;
}

.image-item h3 {
    color: #333;
    font-size: 1rem;
    margin: 0;
}

.image-item:hover {
    transform: translateY(-5px);
}

.active {
    border: 3px solid #02021e;
    border-radius: 8px;
    padding: 15px;
}

.details-section {
    padding: 2rem;
    background-color: #02021e;
    height: 100%;
    overflow-y: auto;
}

.details-content {
    max-width: 500px;
    margin: 0 auto;
}

.details-image {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: 8px;
    margin: 1.5rem 0;
}

.details-section h2 {
    color: #2c3e50;
    font-size: 2rem;
    margin-bottom: 1rem;
}

.details-section p {
    color: #666;
    line-height: 1.7;
    margin-bottom: 2rem;
}

.cta-button {
    padding: 1rem 2rem;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
    width: 100%;
}

.cta-button:hover {
    background-color: #0056b3;
    transform: translateY(-2px);
}

@media (max-width: 992px) {
    .container {
        grid-template-columns: 1fr;
        height: auto;
        padding: 0px;
    }
    
    .image-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .details-section {
        border-left: none;
        border-top: 1px solid #dee2e6;
        padding: 2rem 1rem;
    }
}

@media (max-width: 576px) {
    .image-grid {
        grid-template-columns: 1fr;
    }
    
    .details-section h2 {
        font-size: 1.5rem;
    }

    .details-image {
        height: 200px;
    }
}