body {
    background-color: #a8aeeb;
    font-family: 'neue-haas-grotesk-display';
    color: #161616;
}

html, body {
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  position: relative;
min-height: 100vh;
}
header #hero-headings {
    user-select: initial;
}
header p.fat {
    user-select: initial !important;
}
#header-vid {
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
  overflow: hidden;
}
#map img {
    max-width: min(200%, 1020px);
    margin-left: calc(-100% + 50vw - 2rem);
    transform: translateX(-50%);
    margin-top: 7.5rem;
}
.video-poster {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  z-index: 1;
}

#header-vid iframe {
  position: absolute;
  width: 100%;
  height: 100%;
  border: none;
  z-index: 2;
}
#admin-button {
    width: 124px;
    height: 2rem;
    cursor: pointer;
    color: #161616;
    background-color: #f1f1f1;
    position: fixed;
    top: 1.7rem;
    right: 1.5rem;
    transition: transform 0.3s ease-in-out;
    border-radius: 1rem;
    text-align: center;
    z-index: 9999999999;
}
#admin-button p{
    margin-top: 5%;
}
#admin-button:hover {
    transform: scale(1.12);
}
input, textarea, input[type="text"] {
    font-family: 'neue-haas-grotesk-display';
}
#logout-button {
    width: 124px;
    height: 2rem;
    cursor: pointer;
    color: #f1f1f1;
    background-color: #161616;
    position: fixed;
    top: 4.7rem;
    right: 1.5rem;
    transition: transform 0.3s ease-in-out;
    border-radius: 1rem;
    text-align: center;
    z-index: 9999999999;
}
#logout-button p {
    margin-top: 5%;
}
#logout-button:hover {
    transform: scale(1.12);
}
p {
    max-width: 39ch;
}

h2 {
    font-family: 'dahlia';
    font-size: 12rem;
    font-weight: 50;
    user-select: none;
}
.fat {
    font-size: 18px;
}
h3 {
    font-weight: 100;
    font-size: 3rem;
    margin: 0;
}

h4 {
    font-weight: 50;
    font-size: 1.5rem;
    margin: 0;
    width: max-content;
}

h5 {
    font-weight: 50;
    font-size: 2rem;
    margin: 0;
    width: max-content;
}
h6 {
    font-weight: 50;
    font-size: 1.5rem;
    margin: 0;
}
#mobile-menu a.active p {
  text-decoration: underline;
  text-underline-offset: 5px;
}
a {
    text-decoration: none;
    color: #161616;
    display: inline-block;
}

menu {
    position: relative;
    z-index: 99999;
    margin: 0;
    padding: 1.2rem 0 2rem 13rem;
}

menu a {
    display: inline-block;
    padding: 0 0.85rem;
    transition: scale 0.25s ease-in-out;
}

.transition {
    transition: scale 0.25s ease-in-out;
}


#mobile-menu-button:hover, menu a:hover, .hero>div:nth-child(2) a:hover, #play:hover, .banner >div:nth-child(2) a:hover {
    scale: 1.13;
}

#mobile-menu-button:active, .modal-close:active, menu a:active, .hero>div:nth-child(2) a:active, #play:active, .banner >div:nth-child(2) a:active {
    scale: 0.97;
}

header {    
    height: 34.25rem;
    position: relative;
    margin-top: -6.25rem;
}

#header-vid {
    width: 100%;
    aspect-ratio: 1;
    background-size: cover;
    position: absolute;
    top: 0;
    z-index: -1;
}
#header-vid iframe {
    width: 100%;
    aspect-ratio: 1;
}

header .hero {
    position: relative;
    display: flex;
    top: 9rem;
}

.hero {
    margin: 0 1.5rem;
}
.sub p {
    font-size: 18px;
}
#partners {
    margin-top: 4rem;
}
#partners p {
    padding-bottom: 0.5rem;
}
#partners svg {
    width: 12rem;
}
#partners>div {
    width: max-content;
}

.hero>div {
    display: inline-block;
    width: calc(50% - 3px);
}

#hero-headings {
    width: min-content;
    text-align: -webkit-right;
}

#hero-headings span {
    text-decoration: underline;
    text-underline-offset: 6px;
}

#hero-headings>div:nth-child(1) {
    width: min-content;
    margin-bottom: 0.4625rem;
}

#hero-headings>div:nth-child(2) {
    width: max-content;
    text-align: left;
    margin-bottom: 0.4625rem;
}

#hero-headings>div:nth-child(3) {
    width: max-content;
}

header .hero>div:nth-child(2) {
    max-width: 48ch;
    top: 17px;
    position: relative;
    left: 8px;
}

.hero>div:nth-child(2) a:not(#qaa a), .banner >div:nth-child(2) a {
    width: 7.75rem;
    height: 2rem;
    display: block;
    color: #f1f1f1;
    border-radius: 1rem;
    background-color: #161616;
    text-align: center;
    top: -0.5rem;
    position: relative;
}
#qaa a {
    text-decoration: underline;
    text-underline-offset: 3px;
    transform-origin: 50% 80%;
    transition: scale 0.25s ease-in-out;
}
#qaa a:hover {
    scale: 1.1;
}
.hero>div:nth-child(2) a p, .banner >div:nth-child(2) a p {
    padding-top: 3.25%;
}

header .hero>div:nth-child(2) p, .banner >div:nth-child(2) p {
    line-height: 1.5rem;
    margin-top: 1.5rem;
}

.typo h2 {
    position: absolute;
    margin: unset;
    z-index: 100000;
}

.typo h2:nth-child(1) {
    left: 1.5rem;
    top: -1rem;
}

.typo h2:nth-child(2) {
    right: 1.5rem;
    top: -1rem;
}

.typo h2:nth-child(3) {
    left: 1.5rem;
    bottom: -1.5rem;
}

.typo h2:nth-child(4) {
    right: 1.5rem;
    bottom: -1.5rem;
}

.image-grid {
  display: grid;
  grid-template-columns: repeat(16, 1fr);
  gap: 16px;
  padding: 1.5rem;
}

/* Each image wrapper */
.grid-item {
  overflow: hidden;
  border-radius: 16px;
}

.grid-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: inherit;
}

/* Example aspect ratios per item (based on visual estimation) */
.item1 {
  grid-column: 1 / 9;
  grid-row: 1 / 3;
  aspect-ratio: 3 / 2;
}

.item2 {
  grid-column: 9 / 13;
  grid-row: 1 / 4;
  aspect-ratio: 2 / 3;
}

.item3 {
  grid-column: 13 / 17;
  grid-row: 1 / 4;         /* Still spans rows 1–2 */
  aspect-ratio: 1 / 1;
  align-self: end;         /* Align to bottom of row 2 */
}
 
.item4 {
  grid-column: 5 / 9;
  grid-row: 3 / 7;
  aspect-ratio: 1 / 1;
}

.item5 {
  grid-column: 4 / 9;
  grid-row: 7 / 13;
  aspect-ratio: 3 / 2;
}

.item6 {
  grid-column: 9 / 17;
  grid-row: 4 / 10;
  aspect-ratio: 3 / 2;
}

.item7 {
  grid-column: 9 / 16;
  grid-row: 10 / 16;
  aspect-ratio: 3 / 2;
}
#video {
    margin-top: 3rem;
    position: relative;
    overflow-x: hidden;
}
video {
    width: calc(100% - 3rem);
    position: relative;
    margin-left: 1.5rem;
    border-radius: 1rem;
    cursor: pointer;
}

#play {
    width: 124px;
    height: 2rem;
    text-align: center;
    border-radius: 1rem;
    margin-left: 50%;
    transform: translate(-50%, -50%);
    transform-origin: 0 0;
    background-color: #f1f1f1;
    color: #161616;
    z-index: 1;
    cursor: pointer;
    display: flex;
    align-self: center;
    transform-origin: 0% 0%;
    position: absolute;
    top: 50%;
    left: 0%;
}
#play p {
    margin-top: 5%;
    width: 100%;
}
#prehrat {
    position: relative;
}
footer {
    margin: 1.5rem;
    margin-top: 4.5rem;
}
footer>div  {
    display: flex;
}
footer>div>div  {
    display: inline-block;
    width: 33%;
    margin-right: 2rem;
}

footer p  {
    max-width: 25ch;
}
#spotify a {
    margin-top: 1rem;
    max-width: 100%;
    width: 260px;
    aspect-ratio: 0.866;
    display: block;
    background-color: #161616;
    border-radius: 1rem;
}

#copy {
    margin-top: 5rem;
    display: block;
}
#copy>div {
    margin-top: -1rem;
    width: calc(100% - 2rem);
}
#copy p {
    max-width: none;
    font-size: 12px;
}
#extra p {
    width: 33%;
    top: -0.25rem;
    position: relative;
    display: inline-block;
}
#mobile-menu-button {
        opacity: 0;
        pointer-events: none;
        display: none;
}

.disable {
    display: none;
}
.eventsupport {
    display: inline-block;
    margin-top: -0.5rem;
    width: 192px;
    margin-right: 1rem;
}
.dajbych {
    margin-top: -0.5rem;
}
.dajbych svg {
    position: relative;
    top: 0.25rem;
}
#map p {
    display: none;
}
@media (max-width: 920px) {
    #map img {
        max-width: min(100%, 120vh);
        margin-left: 0;
        transform: none;
        margin-top: 3rem;
    }
    #map p {
        max-width: 100%;
        font-size: 14px;
        display: block;
    }
    .eventsupport {
        display: block;
        margin-top: -0.5rem;
    }
    .dajbych {
        margin-top: 1.5rem;
    }
    .disable {
        display: block;
    }
    body.menu-open * {
        cursor: pointer;
    }

    /* Exclude the menu and its children */
    body.menu-open #mobile-menu,
    body.menu-open #mobile-menu * {
        cursor: default;
    }
    body.menu-open #mobile-menu a, body.menu-open #mobile-menu p {
        cursor: pointer;
    }
    #mobile-menu-button {
        display: initial;
        position: fixed;
        z-index: 9999999;
        bottom: 2rem;
        left: 50%;
        height: 2rem;
        transform: translateX(-50%);
        text-align: center;
        width: 124px;
        border-radius: 2rem;
        background: #f1f1f1;
        cursor: pointer;
        transform-origin: 0 center;
        transition: scale 0.25s ease-in-out, opacity 0.25s ease-in-out;
    }
    #mobile-menu.open ~ #mobile-menu-button {
        opacity: 1;
        pointer-events: auto;
    }
    /* Visible state */
    #mobile-menu-button.visible {
        opacity: 1;
        pointer-events: auto;
    }

    #mobile-menu a.active p {
        text-underline-offset: 4px;
    }
    #mobile-menu-button>* {
        display: inline-block;
        margin-top: -0.155rem;
    }
    #mobile-menu-button svg {
        top: 0.4rem;
        position: relative;
        margin-left: 0.5rem;
        transition: transform 0.25s ease-in-out, opacity 0.25s ease-in-out;
    }
    #mobile-menu-button svg:nth-child(2) {
        opacity: 1;
        transform: rotate(90deg);
    }
    #mobile-menu-button svg:nth-child(3) {
        opacity: 0;
        transform: rotate(90deg);
        position: absolute;
        right: 1.59rem;
    }
    #mobile-menu.open ~ #mobile-menu-button svg:nth-child(2) {
        opacity: 0;
    }
    #mobile-menu.open ~ #mobile-menu-button svg:nth-child(3) {
        opacity: 1;
    }
    #mobile-menu.open ~ #mobile-menu-button svg {
        transform: rotate(0deg);
    }
    menu {
        pointer-events: none;
        position: fixed;
        bottom: -110dvh;
        z-index: 1000000;
        padding: 2rem 0;
        padding-bottom: 5rem;
        border-top-right-radius: 1rem;
        border-top-left-radius: 1rem;
        background: #f1f1f1;
        text-align: center;
        width: 100%;
        transition: bottom 0.25s ease-in-out;
    }
    #mobile-menu.open {
        bottom: 0;
        pointer-events: auto;
    }
    menu a {
        display: block;
        text-align: center;
    }
    menu p {
        margin-left: 50%;
        transform: translateX(-50%);
        padding: 0.25rem 0;
    }
    .typo h2:nth-child(2) {
        top: 5.45rem;
    }
    header {
        height: calc(100dvh + 6.25rem);
    }
    #hero-headings {
        margin-top: 6.9rem;
        margin-left: calc(100% + 0.2rem);
        transform: translateX(-50%);
    }
    header .hero>div:nth-child(2) {
        width: 100%;
        position: absolute;
        left: 0;
        top: calc(11.7rem + 50dvh);
    }
    #header-vid {
        width: 100vw;
        height: 100vh;
        overflow: hidden !important;
        margin-left: 50%;
        transform: translateX(-50%);
    }
    .hero>div {
        margin-top: calc(-12rem + 50dvh) !important;
        transform: translateY(-26%);
    }
    #header-vid iframe {
        height: max(100vh, 100vw) !important;
        overflow: hidden;
        aspect-ratio: 1;
        object-fit: cover;
        width: unset;
        margin-left: 50%;
        transform: translateX(-50%);
    }
    .image-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 4px;
        padding: 1.5rem;
        margin-top: 15.75rem;
    }
    .item1 {
        grid-column: 1 / 2;
        grid-row: 1 / 3;
        aspect-ratio: 3 / 2;
    }

    .item2 {
        grid-column: 1 / 2;
        grid-row: 3 / 10;
        aspect-ratio: 2 / 3;
    }

    .item3 {
        grid-column: 1 / 2;
        grid-row: 8 / 15;
        aspect-ratio: 1 / 1;
        margin-top: -0.185rem;
        align-self: unset;
    }
    
    .item4 {
        grid-column: 2 / 3;
        grid-row: 2 / 6;
        aspect-ratio: 1 / 1;
    }

    .item5 {
        grid-column: 2 / 3;
        grid-row: 6 / 7;
        aspect-ratio: 3 / 2;
    }

    .item6 {
        grid-column: 2 / 3;
        grid-row: 7 / 11;
        aspect-ratio: 3 / 2;
    }

    .item7 {
        grid-column: 2 / 3;
        grid-row: 11 / 14;
        aspect-ratio: 3 / 2;
    }
    #video {
        padding-top: 4.5rem;
        margin-top: 0;
    }
    #video .hero>div {
        margin-top: 0 !important;
    }
    h5 {
        max-width: calc(100vw - 3rem);
    }

   .sub>div:nth-child(2) {
        display: block;
        width: 100%;
        top: -1rem;
        position: relative;
        margin-bottom: -1rem;
    }
    footer>div>div {
        display: inline-block;
        width: calc(50% - 0.7rem);
        margin-right: 1.5rem;
    }
    footer h4 {
        max-width: 100%;
    }
    footer {
        margin-top: 5.5rem;
        margin-bottom: 5rem;
    }
    .ig {
        margin-top: 5rem;
    }
    #copy>div {
        width: calc(100% - 0rem);
    }
    #extra p {
        width: 100%;
    }
}
@media (max-width: 500px) {
    .image-grid {
        margin-top: 17.75rem;
    }
    #hero-headings {
        scale: 0.77;
        margin-left: calc(100% - 2.4rem);
    }
}