@charset "UTF-8";
/* CSS Document */

body {
    overflow: scroll;
}

main {
    max-width: 1920px;
    width: 96vw;
    height: auto;
    margin: 3vw auto 3vw auto;
}

.col2x {
    margin: 2vw 0.9vw;
    height: 14vw;
    background-color: #BFDFC7;
}

.col2x img {
    width: 100%;
    height: auto;
    object-fit: contain;
    transform: scale(1);
    transition: .3s ease;
}

.col2x img:hover {
    overflow: hidden;
    transform: scale(1.02);
}


/* Container for the image overlay */
.popup {    
    height: 100%;
    width: 100%;
    display: none;
    position: fixed;
    z-index: 1;
    top: 0;
    left: 0;
    background-color: rgb(0,0,0);
    background-color: rgba(237, 245, 215, 0.9);
    overflow-y: scroll;
}

.overlay-content {
    position: relative;
    top: 5%;
    width: 90vw;
    text-align: center;
    margin: 0px auto 0px auto;
}

/* Holds the buttons for Tickets, Print Flyer and Contact Us */
.overlay-buttons {
    display: flex;
    justify-content: space-between;
    top: 5%;
    margin-top: 20px;
}

/* Apply styles to turn text into a button */
.button {
    background-color: transparent;
    font: 550 1.2em/0 quasimoda, sans-serif;
    color: #446130;
    text-align: center;
    padding: 15px;
    margin: -10px 0px 15px 0px;
    text-decoration: none;
    width: max-content;
    height: 12px;
    border: 3px solid #446130;
    -moz-border-radius : 50px;
    -webkit-border-radius : 50px;
    border-radius: 50px;
    transition: .3s;
}

.button:hover {
    color: #EDF5D7;
    background-color: #446130;
    transition: .3s;
}

/* This is just decorative as the whole overlay is an active link to close the overlay */
.overlay-content .close-icon {
    width: 2.5vw;
    height: auto;
    margin-bottom: 15px;
    object-fit: contain;
    float: left;
    cursor: pointer;
    transition: 0.3s;
}

.close-icon:hover {
    transform: scale(1.1, 1.1);
}

.image-box {
    width: 100%;
    max-width: 720px;
    height: auto;
    margin: 3vw auto;
    text-align: center;
}

.image-box img {
    width: 100%;
    max-width: 720px;
    height: auto;
}

.image-box h3, .image-box p {
    color: #F0F7F4;
    margin-top: 1vw;
    line-height: 1.1;
}

/* Put a bit of space below the text on short browser windows */
.image-box p {
    padding-bottom: 30px;
}


/* Fixed width settings for viewports over 2000px wide */
@media (min-width : 2180px ){
    
    main {
        width: 1920px;
    }
    
     .col2x {
        margin: 40px 20px;
        height: 280px;
    }
    
    
    .overlay-content .close-icon {
        width: 50px;
    }

    .image-box h3, .image-box p {
        margin-top: 20px;
        line-height: 1.1;
    }

}

/* Break for small desktops and large tablets */
@media screen and (max-width: 1440px) {

    .col2x {
        width: 22vw;
        height: 22vw;
    }

}

/* Break for landscape tablets */
@media screen and (max-width: 1180px) {
    
    .col2x {
        width: 30vw;
        height: 30vw;
    }
    
   /* Specific location inside popup needed to ensure close-icon attributes are applied to the image tag (otherwise col2x img is applied) */
    .overlay-content .close-icon {
        width: 5vw;
    }
    
}

/* Break for large phones and portrait tablets */
@media screen and (max-width: 820px) {

    .col2x {
        width: 46vw;
        height: 46vw;
    }
    
}

/* Break for mobile phones */
@media screen and (max-width: 600px) {

    .col2x {
        width: 96vw;
        height: 96vw;
    }

    .overlay-content .close-icon {
        width: 7vw;
    }
    
}
