* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: #efe1cc;
    
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: rgba(0, 0, 0, 0.243);
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
    z-index: 1000;
    width: 100%;
}

header .logo {
    text-decoration: none;
    font-size: 1.7em;
    color: white;
    font-family: 'Playfair', serif;
}

.navbar {
    display: grid;
    justify-content: flex-end;
}

.nav-list {
    display: grid;
    list-style: none;
    grid-auto-flow: column;
}

.nav-list li a {
    text-decoration: none;
    color: white;
    font-family: 'PlayFair Display', serif;
    font-size: 1.3em;
    padding: 15px;
    transition: background-color 0.3s ease;
}

.nav-list li a:hover {
    background-color: rgb(52, 52, 52);
    transition: background-color 0.3s ease;
}

.menu {
    display: none; 
    font-size: 2rem;
    color: white;
    cursor: pointer;
}

.banner {
    position: relative;
    width: 100%;
    height: 550px;
    background: url(./img/sandalshotel.jpg) no-repeat center center/cover;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 60px;

}

hr {
    border: 0;
    height: 2px;
    background-color: black; 
    width: 90%;
    margin: 80px auto;
}

.title {
    position: absolute;
    bottom: -17px;
    left: 20px;
    font-family: 'Playfair Display', serif;
    font-size: 6em;
    color: white;
    padding: 10px;
    text-shadow: 3px 3px 10px black;
}

h2 {
    font-family: 'Playfair Display', serif;
    font-size: 3rem;
    color: rgb(0, 0, 0);
    max-width: 100%;
    text-align: left;
    padding: 40px;
    padding-top: 30px;
}

#arrival p, 
#resort p, 
#journeys p, 
#personal-photos p {
    font-family: 'Newsreader', serif;
    font-size: 1.5rem;
    color: rgb(0, 0, 0);
    max-width: 100%;
    text-align: left;
    padding-left: 40px;
    padding-right: 40px;
}

#personal-photos {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    padding: 40px; 
  }

#personal-photos figure {
    position: relative;
    width: 100%;
    height: 500px;
    overflow: hidden; 
    box-shadow: 1px 2px 10px rgb(16, 16, 16);
}

#personal-photos img {
    width: 100%;
    height: 100%; 
    object-fit: cover; 
    opacity: 1;
    transition: opacity 500ms;
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0.25;
    transition: opacity 500ms;
}

#personal-photos section{
    padding: 20px;
}

#personal-photos img:hover {
    opacity: 1;
}

#personal-photos figure {
    position: relative; 
  }

#personal-photos figure img {
    position: absolute ;
    top: 0;
    left: 0 ;
  }

#personal-photos figure .visible {
    opacity: 1;
  }

#personal-photos figure .hidden {
    opacity: 0 ;
  }

#personal-photos figure:hover .hidden{
    opacity: 1;
  }

#footer p, a {
    font-family: 'Newsreader', serif;
    font-size: 1.5rem;
    color: black;
    max-width: 100%;
    text-align: center;
    padding: 40px;
}

#footer a{
    color: #255858
}

#arrival {
    padding-top: 40px;
    display: grid;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
}

.scroll-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: black;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 45%;
    cursor: pointer;
    box-shadow: 0 0 10px white;
    font-size: 1.5rem;
    transition: 0.3sease;
}

@media (max-width: 768px) {

    .menu {
        display: block;
    }

    .nav-list {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 68.5px;
        right: 0;
        background: rgba(0, 0, 0, 0.243);
        width: 100%;
        text-align: center;
    }

    .nav-list li {
        padding: 15px;
    }

    .banner {
        height: 700px;
    }

    .title {
        font-size: 6rem;
        bottom: 10px;
        left: 10px;
    }

    h2 {
        font-size: 4rem;
        max-width: 100%;
    }

    #arrival p,
    #resort p,
    #journeys p,
    #personal-photos p,
    #copyright p {
        font-size: 2.2rem;
        width: 100%;
    }

    #arrival {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 480px) {
    .banner {
        height: 600px;
    }

    .title {
        font-size: 5em;
        bottom: 10px; 
        left: 10px;
    }

    h2 {
        font-size: 3em;
        max-width: 100%;
    }

    #arrival p, 
    #resort p, 
    #journeys p {
        font-size: 1.5em;
        max-width: 100%;
    }

    #copyright p {
        font-size: 1.5em;
        max-width: 100%;
    }
}

@media screen and (min-width: 1040px) {
    #personal-photos {
        grid-template-columns: 1fr 1fr 1fr;

    }
}

@media screen and (max-width: 480px) {
    #personal-photos {
    grid-template-columns: 1fr;
    
    }    
}