@media (max-width:991px) {
    body.poster {
        margin-top: 60vh;
    }
}

body.poster {
    background-attachment: fixed;
}

.top-5 {
    top: 5px;
}

/* mask-image: linear-gradient(to right, transparent 0%, black 20%, black 80%, transparent 100%);
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 20%, black 80%, transparent 100%); */
.textContainer {
    overflow: hidden;
    white-space: nowrap;
    max-width: 700px;
    mask-image: linear-gradient(to right, transparent 0%, black 20%, black 80%, transparent 100%);
    -webkit-mask-image: linear-gradient(to right, transparent 0%, black 20%, black 80%, transparent 100%);
}

.scrolling {
    animation: marquee 60s linear infinite;
    display: inline-block;
    padding-right: 0px;
    color: #ffffff;
    font-size: 20px;
}

@keyframes marquee {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-100%);
    }
}

.grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 10px;
    padding: 5%;
    max-width: 100%;
    max-height: 100%;
    box-sizing: border-box;
}

@media (min-width: 800px) {
    .grid-container {
        padding: 5%;
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 2000px) {
    .grid-container {
        padding: 2%;
        grid-template-columns: repeat(6, 1fr);
    }
}

.grid-container button {
    position: relative;
    width: 100%;
    padding-top: 100%;

    /* Square aspect ratio */
    background-color: #3c3c3c;
    color: white;
    font-size: 16px;
    border-radius: 0;
    border-style: none;
    cursor: pointer;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s, transform 0.3s;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.grid-container button span {
    position: absolute;

    /* Ensure the text is positioned correctly */
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);

    /* Centers the text */
    opacity: 0;
    transition: opacity 0.3s;
}

.grid-container button::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(40, 143, 168, 0.4), rgba(0, 0, 0, 0.6));
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.grid-container button:hover::before {
    opacity: 1;
}

.grid-container button:hover {
    transform: scale(1.01);

    /* Slightly enlarge the button */
}

.grid-container button:hover span {
    opacity: 1;

    /* Fade in the text on hover */
}

.carousel-inner {
    height: 400px;
}

.img-fade-circle {
    border-radius: 50%;
    -webkit-mask-image: radial-gradient(circle, rgba(0,0,0,1) 85%, rgba(0,0,0,0) 100%);
    -webkit-mask-repeat: no-repeat;
    -webkit-mask-position: center;
    -webkit-mask-size: cover;
    mask-image: radial-gradient(circle, rgba(0,0,0,1) 85%, rgba(0,0,0,0) 100%);
    mask-repeat: no-repeat;
    mask-position: center;
    mask-size: cover;
}

.responsive-heading {
    font-size: 2vw;
    white-space: nowrap;
    padding: clamp(0.5rem, 2vw, 0rem);

    /* scales padding with viewport */
}

form .form-control {
    color: #212529;

    /* Bootstrap's dark text */
}

.form-control::placeholder {
    color: #6c757d;

    /* Bootstrap's "text-secondary" */
    opacity: 1;

    /* make sure it’s not faded */
}

.logo-container {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}

.main-logo {
    width: 50%;

    /* or any % you want */
    max-width: 600px;

    /* optional cap */
    height: auto;
}

/* Overlay base */
.pull-overlay {
    position: fixed;
    inset: 0;
    background: #000;
    z-index: 9999;
    display: grid;
    place-items: center;
    transition: opacity 600ms ease;
}

.pull-overlay.fade-out {
    opacity: 0;
    pointer-events: none;
}

/* Logo wrap */
/* Ensure button is a positioning context */
.pull-overlay .cord-btn { position: relative; }

/* Make Tap! clickable, even if an earlier rule set pointer-events:none */
.pull-overlay .logo-wrap {
  pointer-events: auto !important;
  cursor: pointer;
  user-select: none;
  z-index: 1;
}

#overlayLogo {
    width: min(320px, 70vw);
    height: auto;
    grid-area: auto / auto / auto / 2;
}

/* Cord positioning */
.pull-overlay .cord-wrap {
    position: absolute;
    top: clamp(40px, 10vh, 120px);

    /* start near top */
    right: clamp(24px, 6vw, 100px);
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Ball */
.cord-btn {
    position: relative;
    pointer-events: auto;
    background: #fff;
    border: none;
    width: 28px;
    height: 28px;
    border-radius: 999px;
    box-shadow: 0 2px 0 rgba(0,0,0,0.25);
    cursor: grab;
    will-change: transform;
}

/* Cord attached to ball */
.cord-btn::before {
    content: "";
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: clamp(120px, 22vh, 45vh);

    /* cord length (max ~half page) */
    top: calc(-1 * clamp(120px, 22vh, 45vh));
    background: #e6e6e6;
    opacity: 0.9;
}

#contactPanel.fade-out {
    opacity: 0;
    visibility: hidden;
    transition: opacity .22s ease, visibility .22s ease;
}

/* Spring animation */
@keyframes cord-pull-spring {
    0% {
        transform: translateY(0);
    }

    55% {
        transform: translateY(42px);
    }

    /* pull past normal */
    78% {
        transform: translateY(-8px);
    }

    /* rebound */
    100% {
        transform: translateY(0);
    }
}


