* {
    box-sizing: border-box;
}

body, html {
    margin: 0;
    padding: 0;
    height: 100vh;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #ffffff;
    overflow: hidden;
}

.main-container {
    background-image: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.8)), 
                      url('../images/newbg.jpg');
    background-size: cover;
    background-position: center;
    height: 100vh;
    width: 100vw;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding-top: 5vh;
    padding-bottom: 7vh;
}

.content-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 1440px;
}

.logo-container {
    height: 15vh;
    margin-bottom: 2vh;
    display: flex;
    justify-content: center;
    align-items: center;
}
.logo-container img {
    max-height: 100%;
    width: auto;
    object-fit: contain;
}

.clip-container {
    height: 17vh;
    margin-bottom: 3vh;
    display: flex;
    justify-content: center;
    align-items: center;
    display: inline-block;
    position: relative;
    border: 1px solid rgba(0, 0, 0, 0.3);
}
.clip-container img {
    max-height: 100%;
    width: auto;
    object-fit: contain;
}

.clip-container::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  pointer-events: none;
  /*
  box-shadow: inset 4px 4px 10px rgba(0, 0, 0, 0.75), inset -3px -3px 8px rgba(255, 255, 255, 0.6), inset 0 0 15px rgba(255, 255, 255, 0.25);
  mix-blend-mode: screen;
  */
}

.ig-title {
    height: 2vh;
    margin-bottom: 1vh;
    display: flex;
    justify-content: center;
    align-items: center;
}
.ig-title img {
    max-height: 100%;
    width: auto;
    object-fit: contain;
}

.ig-posts {
    height: 22vh;
    margin-bottom: 7vh;
    width: 100%;
    max-width: 1325px;
    display: flex;
    justify-content: center;
    align-items: center;

}

#instagram-rss-feed {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    width: 100%;
    height: 100%;
}

#instagram-rss-feed > a {
    position: relative;
    display: block;
    height: 100%;
    /*aspect-ratio: 3 / 4;*/
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

#instagram-rss-feed > a > .img-box {
    width: 100%;
    height: 100%;
}

#instagram-rss-feed > a > .img-box > img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

#instagram-rss-feed > a:hover > .img-box > img {
    transform: scale(1.08);
}

#instagram-rss-feed > a > .caption-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.65);
    color: #ffffff;
    font-size: 12px;
    padding: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

#instagram-rss-feed > a:hover > .caption-overlay {
    opacity: 1;
}

.email-button-container {
    height: 10vh;
    margin-bottom: 4vh;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
}
.email-button-container img {
    max-height: 100%;
    width: auto;
    object-fit: contain;
}

.footer-logo {
    height: 7vh;
    display: flex;
    justify-content: center;
    align-items: center;
}
.footer-logo img {
    max-height: 100%;
    width: auto;
    object-fit: contain;
}


@media (max-width: 768px) {
    body, html {
        height: auto;
        overflow-x: hidden;
        overflow-y: auto;
    }

    .main-container {
        height: auto;
        min-height: 100vh;
        padding: 40px 20px;
        justify-content: flex-start;
    }

    .content-wrapper {
        height: auto;
        width: 100%;
    }

    .logo-container,
    .clip-container,
    .ig-title,
    .ig-posts,
    .email-button-container,
    .footer-logo {
        height: auto;
        width: 100%;
        margin-left: auto;
        margin-right: auto;
        margin-bottom: 0;
    }

    .logo-container {
        max-width: 220px;
    }

    .clip-container {
        max-width: 100%;
        margin-top: 25px;
    }

    .ig-title {
        max-width: 280px;
        margin-top: 25px;
    }

    .ig-posts {
        max-width: 100%;
        margin-top: 10px;
    }

    #instagram-rss-feed {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
        height: auto;
    }

    #instagram-rss-feed > a {
        height: auto;
        width: 100%;
    }

    .email-button-container {
        max-width: 100px;
        margin-top: 30px;
    }

    .footer-logo {
        max-width: 200px;
        margin-top: 40px;
    }

    .logo-container img,
    .clip-container img,
    .ig-title img,
    .email-button-container img,
    .footer-logo img {
        max-height: none;
        width: 100%;
        height: auto;
        display: block;
    }
}