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

main {
    padding: 20px 10%;
}

h2 {
    text-align: center;
    font-size: 2.8em;
    margin-bottom: 40px;
    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);
}

.category {
    margin-bottom: 40px;
    padding:30px;
    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);
}

.category h3 {
    text-align: left;
    font-size: 25px;
    margin-bottom: 20px;
    color: #555;
    border-bottom: 2px solid #f8c146;
    display: inline-block;
}

.images{
    display:grid;
    grid-template-columns:repeat(5, 1fr);
    gap:15px;
}

.images img{
    width:100%;
    aspect-ratio:1 / 1;

    object-fit:cover;

    border-radius:12px;
    border:2px solid #f8c146;

    box-shadow:0 4px 8px rgba(0,0,0,0.15);

    cursor:pointer;

    transition:all 0.3s ease;
}

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

/* Modal styles using the class "image-modal" for the zoom effect */
/* MODAL */

.image-modal{
    display:none;
    position:fixed;
    inset:0;

    background:rgba(0,0,0,0.85);

    justify-content:center;
    align-items:center;

    z-index:99999;
    overflow:hidden;
}

.modal-content{
    position:relative;
    display:inline-block;

    max-width:90vw;
    max-height:90vh;
}

#modalImage{
    display:block;

    max-width:90vw;
    max-height:90vh;

    width:auto;
    height:auto;

    object-fit:contain;

    border-radius:12px;
    box-shadow:0 10px 35px rgba(0,0,0,0.6);

    animation:zoomIn 0.25s ease-in-out;
}

.close{
    position:absolute;
    top:12px;
    right:12px;

    width:42px;
    height:42px;

    display:flex;
    align-items:center;
    justify-content:center;

    color:white;
    background:rgba(0,0,0,0.65);

    border-radius:50%;

    font-size:32px;
    font-weight:bold;
    line-height:1;

    cursor:pointer;
    z-index:100000;

    transition:all 0.3s ease;
}

.close:hover{
    background:#f8c146;
    color:#333;
}

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

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

@media(max-width:1200px){

    .images{
        grid-template-columns:repeat(4, 1fr);
    }
}

@media(max-width:992px){

    .images{
        grid-template-columns:repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
	main {
		width: 100%;
		padding: 0px 5%;
	}
	
	.images{
        grid-template-columns:repeat(2, 1fr);
        gap:15px;
    }
	
	.images img {
	    width: 100%;
	    max-width: 300px;
	    height: 180px;
	}
	
	#modalImage{
	    max-width:90vw;
	    max-height:85vh;
	}
}
