/* cyrillic-ext */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(../../resources/fonts/1.woff2) format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
/* cyrillic */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(../../resources/fonts/1.woff2) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

/* latin-ext */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(../../resources/fonts/1.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(../../resources/fonts/2.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: none;
}

::-webkit-scrollbar-thumb {
    background-color: #ffffff;
    border-radius: 6px;
    border: 3px solid #000000;
}

::-webkit-scrollbar-thumb:hover {
    background-color: #f1f1f1;
}

body {
    scrollbar-width: thin;
    scrollbar-color: #000000 #ffffff;
    background-color: #000;
    margin: 0px;
    padding: 0;
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    color: #fff;
    line-height: 1.5;
}

.main {
    max-width: 768px;
    margin-top: calc(60px);
    margin-left: auto;
    margin-right: auto;
    padding: 20px;
}

.block-main-header-text {
    display: flex;
    flex-direction: column;
    margin-top: 10px;
    margin-bottom: 30px;
}

.main-header-text {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 4px;
}

.header-text-name {
    font-size: 16px;
    color: #ffffff;
    margin-top: 20px;
    margin-bottom: 20px;
}

.gallery-wrap {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 8px;
}

.gallery-item-block {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    cursor: pointer;
    aspect-ratio: 1/1;
    background: #202020;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.5s ease;
}

.gallery-item-block img,
.gallery-item-block video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
}

.gallery-item-block:hover {
    transform: scale(1.01);
}

.gallery-item-block video {
    pointer-events: none;
}

.lightbox-frame {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.95);
    display: none;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    z-index: 1000;
}

.lightbox-frame.active-frame {
    display: flex;
}

.lightbox-content-frame {
    position: relative;
    max-width: 100%;
    max-height: 80%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-content-frame img,
.lightbox-content-frame video {
    max-width: 96%;
    max-height: 96%;
    border-radius: 12px;
    transition: transform 0.3s ease;
}

.caption-text {
    color: #fff;
    margin-top: 12px;
    font-size: 0.9rem;
    opacity: 0.8;
    text-align: center;
}

.close-button-frame {
    position: absolute;
    top: 16px;
    right: 16px;
    background: #191919;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    z-index: 1100;
    padding: 0;
}

.nav-button {
    position: absolute;
    background: #191919;
    border: none;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    z-index: 1100;
    padding: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    z-index: 1100;
    opacity: 0;
    transition: opacity 0.3s ease;
}

@media (hover: hover) and (pointer: fine) {
    .lightbox-frame:hover .nav-button {
        opacity: 1;
    }
}

.nav-button-left {
    left: 20px;
}

.nav-button-right {
    right: 20px;
}

@media (max-width:768px) {
    .nav-button {
        display: none;
    }
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

* {
    outline: none !important;
    -webkit-tap-highlight-color: transparent;
}