/* Sitewide Image Improvements */
.grav-image-gallery {
    display: grid;
    gap: 1.5rem;
    margin: 2.5rem 0;
    width: 100%;
}

.grav-image-gallery.gallery-count-1 {
    grid-template-columns: 1fr;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.grav-image-gallery.gallery-count-2 {
    grid-template-columns: repeat(2, 1fr);
}

.grav-image-gallery:not(.gallery-count-1):not(.gallery-count-2) {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

@media (max-width: 768px) {
    .grav-image-gallery:not(.gallery-count-1) {
        display: flex;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        padding-bottom: 1.5rem;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none; /* Firefox */
    }
    .grav-image-gallery:not(.gallery-count-1)::-webkit-scrollbar {
        display: none; /* Chrome, Safari */
    }
    .grav-image-gallery:not(.gallery-count-1) .grav-figure {
        flex: 0 0 85%;
        scroll-snap-align: center;
    }
}

.grav-figure {
    margin: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.grav-figure .img-wrapper {
    width: 100%;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08), 0 4px 10px rgba(0, 0, 0, 0.04);
    background: #fff;
    border: 1px solid rgba(0,0,0,0.03);
    position: relative;
    /* Hardware acceleration for smooth hover */
    transform: translateZ(0); 
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1), box-shadow 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.grav-figure .img-wrapper:hover {
    transform: translateY(-4px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.12), 0 5px 15px rgba(0, 0, 0, 0.06);
}

.grav-figure img {
    display: block;
    width: 100%;
    height: 100%;
    max-height: 70vh; /* Prevents extremely tall images on desktop */
    aspect-ratio: 4 / 3;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.grav-figure .img-wrapper:hover img {
    transform: scale(1.03);
}

.grav-figure figcaption {
    margin-top: 1rem;
    font-size: 0.95rem;
    color: #555;
    font-style: italic;
    text-align: center;
    line-height: 1.5;
    padding: 0 0.5rem;
}

/* Navigation Enhancements */
.page-navigation {
    display: flex;
    justify-content: space-between;
    margin-top: 3rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(0,0,0,0.05);
}
.page-navigation .prev-link,
.page-navigation .next-link {
    flex: 1;
}
.page-navigation .next-link {
    text-align: right;
}

/* Room Gallery Component */
.room-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
    margin: 3rem 0;
}

.room-card {
    display: flex;
    flex-direction: column;
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 4px 15px rgba(0,0,0,0.06);
    transition: transform 0.3s cubic-bezier(0.165, 0.84, 0.44, 1), box-shadow 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
    text-decoration: none !important;
    border: 1px solid rgba(0,0,0,0.03);
}

.room-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 25px rgba(0,0,0,0.12);
}

.room-card .room-image {
    width: 100%;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: #f8f9fa;
    position: relative;
}

.room-card .room-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.room-card:hover .room-image img {
    transform: scale(1.05);
}

.room-card .no-image {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #adb5bd;
    font-size: 0.9rem;
    font-style: italic;
}

.room-card .room-details {
    padding: 1.25rem 1rem;
    text-align: center;
    flex-grow: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.room-card .room-details h3 {
    margin: 0;
    font-size: 1.15rem;
    color: #333;
    font-weight: 600;
}