@charset "UTF-8";

body {
    min-height: 100vh;
    height: auto;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    transition: background-image 2s ease-in-out;
}

.hero {
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: black;
}

.hero-text h1 {
    font-size: 3.0em;
}

.hero-text .btn {
    margin-top: 20px;
    display: inline-block;
    font-size: 1.1em;
    font-weight: bold;
    width: 300px;
    height: auto;
    padding: 10px 20px;
    background-color: #f8c146;
    color: #333;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.hero-text .btn:hover {
    background-color: #4d87ce;
}

section {
    padding: 60px 5%;
    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);
    margin: 20px auto;
    max-width: 90%;
}

section h2 {
	display: inline-block;
    margin-bottom: 20px;
    color: #555;
    border-bottom: 2px solid #f8c146;
}

section p {
    color: black;
}

.room img {
    width: 100%;
    border-radius: 10px;
    max-width: 400px;
    height: 275px;
    object-fit: cover;
}

.photos {
    display: grid;
  	grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
    flex-wrap: wrap;
}

.photos img {
    width: 100%;
    max-width: 350px;
    height: 250px;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
    transition: transform 0.3s ease;
    cursor: pointer;
}

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

.about p, .location p {
    text-align: justify;
    color: black;
}

/* Use CSS Grid for the .rooms container */
.rooms {
  display: grid;
  grid-template-columns: repeat(4, 1fr); /* 4 columns on large screens */
  gap: 20px;
}

/* Modal styles using the class "image-modal" for the zoom effect */
.image-modal {
    display: none;              /* Hidden by default */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

/* Modal content container for proper positioning */
.modal-content {
    position: relative; /* For the close button positioning */
    display: flex;
    justify-content: center;
    align-items: center;
}

/* The image inside the modal with zoom animation */
#modalImage {
    max-width: 100vh;
    max-height: 95vh;
    width: auto;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.5);
    animation: zoomIn 0.3s ease-in-out;
    object-fit: cover;
}


@keyframes zoomIn {
    from {
        transform: scale(0.8);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

/* Medium screens: 2 columns */
@media (max-width: 768px) {
  	.rooms {
   	 grid-template-columns: repeat(2, 1fr);
  	}
  	.room img {
	  width: 100%;
	  max-width: 300px; /* for example */
	  max-height: 100px;
	  height: auto;
	  border-radius: 10px;
	}
	
	.photos {
	    display: grid;
	    grid-template-columns: repeat(2, 1fr);
	    gap: 15px;
	    flex-wrap: wrap;
	}
	
	.photos img {
	    width: 100%;
	    max-width: 250px;
	    max-height: 100px;
	    height: auto;
	}
	
	#modalImage {
	    max-width: 80vh;
	    max-height: 95vh;
	    width: 90%;
	    height: auto;
	}
  
}
