/* Location Showcase Images Module CSS */

.location-showcase-images {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    position: relative;
    margin-top: 2rem;
}

.location-showcase-images-divider {
    position: absolute;
    left: 50%;
    top: 10px;
    bottom: 10px;
    width: 2px;
    background-color: #e0e0e0;
    transform: translateX(-50%);
    z-index: 1;
}

.location-showcase-image-item {
    position: relative;
    overflow: hidden;
    border-radius: 0.5rem;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 400px;
    background-color: #000000;
}


/* Tilted divider with pseudo-element */

.location-showcase-image-item.has-diagonal-effect::before {
    content: '';
    position: absolute;
    top: -100%;
    left: -100%;
    width: 200%;
    height: 200%;
    background: rgba(255, 255, 255, 0.1);
    transform: rotate(45deg);
    transition: all 0.6s ease;
    z-index: 2;
    opacity: 0;
    pointer-events: none;
}

.location-showcase-image-item.has-diagonal-effect:hover::before {
    top: -50%;
    left: -50%;
    opacity: 1;
}

.location-showcase-image-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}


/* Special styling for congress item */

.congress-item {
    order: 1;
    /* Position as first item (left) */
}

.congressen-item {
    order: 1;
    /* Backward compatibility */
}

.congress-item .location-showcase-image-overlay,
.congressen-item .location-showcase-image-overlay {
    background: #0d0d0d !important;
}

.congress-item:hover .location-showcase-image-overlay,
.congressen-item:hover .location-showcase-image-overlay {
    background: #0d0d0d !important;
}


/* Special styling for theater item */

.theater-item {
    order: 2;
    /* Position as second item (right) */
}

.theater-item .location-showcase-image-overlay {
    background: #0d0d0d !important;
}

.theater-item:hover .location-showcase-image-overlay {
    background: #0d0d0d !important;
}

.location-showcase-image-container {
    position: relative;
    width: 100%;
    height: 100%;
}

.location-showcase-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
    opacity: 0.9;
}

.location-showcase-image-item:hover .location-showcase-image {
    transform: scale(1.05);
    opacity: 1;
}

.location-showcase-image-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 35%;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: flex-start;
    padding: 1.5rem;
    transition: all 0.3s ease;
    z-index: 3;
    /* Ensure overlay is above the tilted divider */
}

.location-showcase-image-item:hover .location-showcase-image-overlay {
    height: 40%;
}

.location-showcase-overlay-logo {
    position: absolute;
    bottom: 100px;
    right: 30px;
    max-width: 100px;
    max-height: 100px;
    opacity: 0.9;
    transition: opacity 0.3s ease;
}

.location-showcase-image-item:hover .location-showcase-overlay-logo {
    opacity: 1;
}

.location-showcase-image-label {
    color: #ffffff;
    font-size: 2rem;
    font-weight: 500;
    text-align: left;
    align-self: flex-start;
    margin-bottom: 1rem;
    font-family: 'Arial', sans-serif;
    width: 100%;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.location-showcase-image-link {
    display: block;
    width: 100%;
    height: 100%;
    text-decoration: none;
    color: inherit;
}


/* Responsive Styles */

@media (max-width: 1024px) {
    .location-showcase-image-item {
        height: 350px;
    }
    .location-showcase-image-label {
        font-size: 1.75rem;
    }
    .location-showcase-overlay-logo {
        max-width: 80px;
        max-height: 80px;
        bottom: 80px;
    }
}

@media (max-width: 767px) {
    .location-showcase-images {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    .location-showcase-images-divider {
        display: none;
    }
    .location-showcase-image-item {
        height: 300px;
    }
    .location-showcase-image-label {
        font-size: 1.5rem;
    }
    .location-showcase-overlay-logo {
        bottom: 70px;
        right: 20px;
    }
    /* Reset order for mobile */
    .congress-item,
    .theater-item,
    .congressen-item {
        order: unset;
    }
}

@media (max-width: 479px) {
    .location-showcase-images {
        gap: 1rem;
    }
    .location-showcase-image-item {
        height: 250px;
    }
    .location-showcase-image-label {
        font-size: 1.25rem;
    }
    .location-showcase-overlay-logo {
        max-width: 70px;
        max-height: 70px;
        bottom: 60px;
        right: 15px;
    }
}