:root {
    font-size: 10px;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    min-height: 100vh;
    background-color: #c5e3ed;
}

.container {
    max-width: 100rem;
    margin: 0 auto;
    padding: 0 2rem 2rem;
}

.heading {
    font-family: "IM Fell English SC", Helvetica, sans-serif;
    font-size: 4rem;
    font-weight: 500;
    line-height: 1.5;
    text-align: center;
    padding: 3.5rem 0;
    color: #1a1a1a;
}

.heading span {
    display: block;
}

.gallery {
    display: flex;
    flex-wrap: wrap;
    margin: -1rem -1rem;
}

.gallery-item {
    /* 	flex: 1 0 24rem; */
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1vmin;
    margin: 1rem;
    box-shadow: 0.3rem 0.4rem 0.4rem rgba(0, 0, 0, 0.4);
    overflow: hidden;
    border-radius: 6px;
}

.gallery-image {
    display: block;
    width: 100%;
    height: 100%;
    max-height: 360px;
    filter: brightness(0.75);
    transition: transform 1000ms ease-out;
    object-fit:contain;
    overflow: hidden;
    border-radius: 6px;
}

.gallery-image:hover {
    filter: brightness(1.15);
    transform: scale(1.5);
}

@supports (display: grid) {
    .gallery {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(24rem, 1fr));
        grid-gap: 2rem;
    }

    .gallery,
    .gallery-item {
        margin: 0;
    }
}

.hover-menu {
    position: relative;
    overflow: hidden;
    margin: 8px;
    min-width: 340px;
    max-width: 480px;
    max-height: 290px;
    width: 100%;
    background: #000;
    text-align: center;
    box-sizing: border-box;
    border-radius: 6px;
  }
  
  .hover-menu * {
    box-sizing: border-box;
    border-radius: 6px;
  }
  
  .hover-menu img {
    position: relative;
    max-width: 100%;
    top: 0;
    right: 0;
    opacity: 1;
    transition: 0.3s ease-in-out;
    border-radius: 6px;
  }
  
  .hover-menu div {
    position: absolute;
    top: 0;
    left: -120px;
    width: 120px;
    height: 100%;
    padding: 8px 4px;
    background: #000;
    transition: 0.3s ease-in-out;
    display: flex;
    flex-direction: column;
    justify-content: center;
    border-radius: 6px;
  }
  
  .hover-menu div a {
    display: block;
    line-height: 2;
    color: #fff;
    text-decoration: none;
    opacity: 0.8;
    padding: 5px 15px;
    position: relative;
    transition: 0.3s ease-in-out;
    border-radius: 6px;
  }
  
  .hover-menu div a:hover {
    text-decoration: underline;
    border-radius: 6px;
  }
  
  .hover-menu:hover img {
    opacity: 0.5;
    right: -120px;
    border-radius: 6px;
  }
  
  .hover-menu:hover div {
    left: 0;
    opacity: 1;
    border-radius: 6px;
  }