.gallery-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex-grow: 4;
}

.detailed-view {
    margin-top: 32px;
    padding-left: 8px;
    padding-right: 8px;
    background-color: #fff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.detail {
    align-items: center;
    display: flex;
    flex-direction: column;
}

.main-image-container {
    width: 100%;
    border-bottom: 1px solid #ddd;
    height: 600px;
    overflow: hidden;
    position: relative;
}

.small-image-container {
    width: 120px;
    border-bottom: 1px solid #ddd;
    height: 120px;
    overflow: hidden;
    position: relative;
}

.details-container {
    flex-grow: 1;
    padding-left: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

#main-image {
    position: absolute; /* Positioning inside the container */
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    transform: translate(-50%, -50%);
    object-fit: cover; /* Cover the container without distortion */
    z-index: 1;
}

.small-image-title {
    position: relative;
}

.small-image {
    position: absolute; /* Positioning inside the container */
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    transform: translate(-50%, -50%);
    object-fit: cover; /* Cover the container without distortion */
    z-index: 1;
}

.thumbnail-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 10px;
}

.thumbnail {
    flex: 1 1 150px; /* Grow and shrink, basis size is 150px */
    max-width: 150px;
    margin: 5px;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.thumbnail img {
    width: 100%;
    height: auto;
}

.thumbnail:hover {
    transform: scale(1.05);
}

.big-title {
    padding-top: 8px;
    font-weight: 600;
    font-size: 3em;
}

@media (max-width: 768px) {
    .main-image-container {
        height: 300px;
    }

    .gallery-container {
        width: 100%;
        flex-grow: 1;
    }

    .details-container {
        width: 100%;
        flex-grow: 1;
        padding-left: 0;
    }

}