/* HERO */
.hero{
    height:45vh;
    background:linear-gradient(rgba(0,0,0,.55),rgba(0,0,0,.55)),
    url('../images/quality.png') center 60%/cover;
    display:flex;
    align-items:center;
    color:white;
    margin-top:70px;
}

.hero h1{
    font-size:48px;
}

/* SECTION */
.section{
    padding:80px 0;
}

h2{
    color:var(--primary);
    margin-bottom:20px;
}

.grid{
    display:grid;
    grid-template-columns:1fr;
    gap:40px;
}

.under-grid{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:40px;
}

.card{
    background:#f8f9fb;
    padding:25px;
    border-radius:10px;
} 

/* ==========================
   GALLERY
========================== */

.gallery{
    display:grid;
    grid-template-columns:repeat(4, 1fr);
    gap:30px;
    justify-items:center;
}

.gallery-item{
    width:220px;
    border:1px solid #ccc;
    overflow:hidden;
    transition:.3s;
    background:#fff;
}

.gallery-item:hover{
    border-color:#03663A;
    box-shadow:0 8px 20px rgba(0,0,0,.12);
    transform:translateY(-5px);
}

.gallery-item img{
    display:block;
    width:100%;
    height:auto;
}

.gallery-item .desc{
    padding:15px;
    text-align:center;
    font-weight:500;
}

.overlay {
  position: absolute;
  bottom: 100%;
  left: 0;
  right: 0;
  background-color: #008CBA;
  overflow: hidden;
  width: 100%;
  height: 0;
  transition: .5s ease;
}

.image:hover .overlay {
  bottom: 0;
  height: 100%;
}

.text {
  white-space: nowrap; 
  color: white;
  font-size: 20px;
  position: absolute;
  overflow: hidden;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  -ms-transform: translate(-50%, -50%);
}

.capacity-table{
    width:100%;
    max-width:700px;
    border-collapse:collapse;
}

.capacity-table td{
    padding:12px 0;
    border-bottom:1px solid #eee;
}

.capacity-table td:last-child{
    text-align:right;
    font-weight:700;
    white-space:nowrap;
}
/* The Modal (background) */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  align-items: center;
  justify-content: center;
  transition: opacity 0.5s ease;
}

/* Modal content (image) */
.modal-content {
  position: relative;
  width: 50%;
  height: auto;
  max-width: 90%;
  max-height: 90%;
  border-radius: 5px;
  overflow: hidden;
  animation: zoomIn 0.5s;
}

@keyframes zoomIn {
  from {transform: scale(0.6);}
  to {transform: scale(1);}
}

.modal.show {
  display: flex;
  opacity: 1;
}

/* Close button */
.close {
  position: absolute;
  top: 10px;
  right: 15px;
  color: #ffffff;
  font-size: 35px;
  font-weight: bold;
  cursor: pointer;
  transition: transform 0.3s;
}

/* Caption of modal image */
.caption {
  position: absolute;
  bottom: 15px;
  width: 100%;
  text-align: center;
  color: #ffffff;
  font-size: 24px;
}

@media screen and (max-width: 768px) {
  .gallery-item {
    width: calc(50% - 20px);
  }
}

@media screen and (max-width: 480px) {
  .gallery-item {
    width: calc(100% - 20px);
  }
}