@charset "UTF-8";

body {
  background: url('/Gallery-Facilities/Building_2.webp') no-repeat center center fixed;
  background-size: cover;
}

/* Title spanning the full width and centered */
.room-container h1 {
    flex-basis: 100%;
    font-size: 2.8em;
    text-align: center;
    margin-top: -10px;
    margin-bottom: 25px;
	padding: 10px 0px 10px;
	color: #444;
	background: rgba(255, 255, 255, 0.8); /* Semi-transparent white background */
	border-radius: 10px;
	box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.room-container h2 {
    flex-basis: 100%;
    text-align: center;
    margin-bottom: 20px;
    font-size: 2em;
    border-bottom: 2px solid #f8c146;
}

/* Room display as columns */
.room-container {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
    max-width: 1500px;
    margin: 40px auto;
}

.room {
    flex: 1;
    min-width: 400px;
    max-width: 500px;
    text-align: center;
    background: rgba(255, 255, 255, 0.8);
    padding: 20px;
    border: 2px solid #f8c146;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.room img {
    width: 100%;
    min-height: 300px;
    height: auto;
    border-radius: 10px;
    margin-top: 15px;
    cursor: pointer;
    transition: transform 0.3s ease;
}

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

/* Modal styles */
.modal {
    display: none;              /* Hidden by default */
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.9);
    justify-content: center;
    align-items: center;
}

/* Modal content container */
.modal-content {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* The image inside the modal */
.modal-content img {
    max-width: 100vh;
    max-height: 100vh;
    width: auto;
    height: auto;
    margin: auto;
    display: block;
    border-radius: 10px;
}

/* Close button styling */
.modal .close {
    position: absolute;
    top: 20px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
}

.modal .close:hover {
    color: #bbb;
}

/* Navigation buttons for the gallery modal */
.modal-content .prev, 
.modal-content .next {
    background-color: rgba(0,0,0,0.5);
    border: none;
    color: #fff;
    font-size: 2rem;
    padding: 10px;
    cursor: pointer;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
}

.modal-content .prev {
    left: 10px;
}

.modal-content .next {
    right: 10px;
}

.modal-content .prev:hover, 
.modal-content .next:hover {
    background-color: rgba(0,0,0,0.7);
}

@media (max-width: 768px) {
	.room-container {
		margin-top: 15px;
		width: 90%;
	}
	
	.room{
		width: 85%;
		min-width: 350px;
	}
	
	.room-container h1 {
		font-size: 2.0em;
		margin-bottom: 5px;
	}
	
	.room img {
    	min-height: 200px;
	}
}