/* Modern Gallery Styles */

/* PP Neue Montreal Font */
@font-face {
  font-family: "PP Neue Montreal";
  font-style: normal;
  font-weight: 400;
  src: local("PP Neue Montreal"),
    url("https://fonts.cdnfonts.com/s/100431/ppneuemontreal-book.woff") format("woff");
}
@font-face {
  font-family: "PP Neue Montreal";
  font-style: normal;
  font-weight: 700;
  src: local("PP Neue Montreal"),
    url("https://fonts.cdnfonts.com/s/100431/ppneuemontreal-bold.woff") format("woff");
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

img {
    -webkit-user-drag: none;
    -khtml-user-drag: none;
    -moz-user-drag: none;
    -o-user-drag: none;
    user-drag: none;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

:root {
    --border-radius: 0px;
    --hover-scale: 1.05;
}

body {
    font-family: "PP Neue Montreal", sans-serif;
    background: #0a0a0a;
    color: #ffffff;
    overflow: hidden;
    cursor: grab;
    user-select: none;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
    -webkit-user-drag: none;
    -khtml-user-drag: none;
    -moz-user-drag: none;
    -o-user-drag: none;
    user-drag: none;
}

body.loaded {
    opacity: 1;
}

body:active {
    cursor: grabbing;
}

/* Header Styles */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 2rem;
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    pointer-events: none;
}

.header > div {
    pointer-events: auto;
}

.nav-section {
    display: flex;
    align-items: center;
}

.logo-text {
    font-family: "PP Neue Montreal", sans-serif;
    font-weight: 700;
    font-size: 2rem;
    text-transform: uppercase;
    color: #ffffff;
    letter-spacing: 0.05em;
}

.values-section,
.location-section,
.contact-section,
.social-section {
    text-align: right;
}

.values-section h3,
.location-section h3,
.contact-section h3,
.social-section h3 {
    font-size: 0.75rem;
    font-weight: 500;
    margin-bottom: 1.5rem;
    color: rgba(255, 255, 255, 0.4);
    font-family: "PP Neue Montreal", sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.15em;
}

.values-section ul,
.social-section ul {
    list-style: none;
}

.values-section li,
.social-section li {
    margin-bottom: 0.75rem;
}

.values-section a,
.contact-section a,
.social-section a {
    color: #ffffff;
    text-decoration: none;
    font-size: 1rem;
    font-family: "PP Neue Montreal", sans-serif;
    font-weight: 400;
    transition: all 0.3s ease;
    display: inline-block;
    letter-spacing: 0.02em;
}

.values-section a:hover,
.contact-section a:hover,
.social-section a:hover {
    color: rgba(255, 255, 255, 0.6);
    transform: translateX(-3px);
}

.location-section p,
.contact-section p {
    font-size: 1rem;
    margin-bottom: 0.5rem;
    color: rgba(255, 255, 255, 0.6);
    font-family: "PP Neue Montreal", sans-serif;
    letter-spacing: 0.02em;
}

.location-section p {
    color: #ffffff;
}

/* Footer Styles */
.footer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 2rem;
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    pointer-events: none;
}

.footer > div {
    pointer-events: auto;
}

.coordinates-section p,
.links-section p,
.info-section p {
    font-size: 0.75rem;
    color: #888;
}

.key-hint {
    background: #333;
    padding: 0.125rem 0.375rem;
    border-radius: 0.25rem;
    font-family: monospace;
}

/* Container and Canvas */
.container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.canvas {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
}

/* Item Styles */
.item {
    position: absolute;
    cursor: pointer;
    border-radius: var(--border-radius);
    overflow: hidden;
    transition: transform 0.3s ease;
}

.item:hover {
    transform: scale(var(--hover-scale));
}

.item-image-container {
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
    pointer-events: none;
    -webkit-user-drag: none;
    -khtml-user-drag: none;
    -moz-user-drag: none;
    -o-user-drag: none;
    user-drag: none;
}

.image-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, #2a2a2a, #4a4a4a);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #888;
    font-size: 14px;
    text-align: center;
    padding: 20px;
    box-sizing: border-box;
}

/* Индикатор загрузки изображений */
.item img[src*="img/"] {
    opacity: 0;
    transition: opacity 0.3s ease;
}

.item img[src*="img/"].loaded {
    opacity: 1;
}

/* Анимация загрузки */
@keyframes imageLoadFade {
    from { opacity: 0; }
    to { opacity: 1; }
}

.item img.loaded {
    animation: imageLoadFade 0.3s ease-in-out;
}

.item-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1rem;
    background: linear-gradient(transparent, rgba(0,0,0,0.8));
    color: #ffffff;
}

.item-name {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
    overflow: hidden;
}

.item-number {
    font-size: 0.75rem;
    color: #888;
    font-family: monospace;
    overflow: hidden;
}

/* Expanded Item */
.expanded-item {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border-radius: var(--border-radius);
    overflow: hidden;
    cursor: pointer;
    z-index: 10000;
}

.expanded-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Overlay */
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.9);
    opacity: 0;
    pointer-events: none;
    z-index: 9999;
    transition: opacity 0.3s ease;
}

.overlay.active {
    pointer-events: auto;
}

/* Project Title */
.project-title {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10001;
    pointer-events: none;
    text-align: center;
}

.project-title p {
    font-size: 3rem;
    font-weight: 700;
    color: #ffffff;
    text-shadow: 0 0 20px rgba(0,0,0,0.5);
    overflow: hidden;
}

/* Page Vignette - Disabled */
.page-vignette-container {
    display: none;
}

/* Caption Clone */
.caption-clone {
    position: fixed;
    background: linear-gradient(transparent, rgba(0,0,0,0.8));
    color: #ffffff;
    padding: 1rem;
    border-radius: var(--border-radius);
    pointer-events: none;
    z-index: 10002;
}

.caption-clone .item-name {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
    overflow: hidden;
}

.caption-clone .item-number {
    font-size: 0.75rem;
    color: #888;
    font-family: monospace;
    overflow: hidden;
}

/* Responsive Design */
@media (max-width: 768px) {
    .header {
        padding: 1rem;
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .values-section,
    .location-section,
    .contact-section,
    .social-section {
        text-align: left;
    }

    .footer {
        padding: 1rem;
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .project-title p {
        font-size: 2rem;
    }
    
    .volume-slider-container {
        bottom: 1rem;
        left: 1rem;
    }
    
    .volume-slider {
        width: 6px;
        height: 100px;
    }
    
    .volume-track {
        width: 6px;
        height: 100px;
    }
    
    .volume-thumb {
        width: 16px;
        height: 16px;
    }
    
    .volume-label {
        font-size: 0.625rem;
    }
}

/* Volume-style slider */
.volume-slider-container {
    position: fixed;
    bottom: 2rem;
    left: 2rem;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    pointer-events: auto;
    transition: opacity 0.3s ease;
}


.volume-slider {
    position: relative;
    width: 8px;
    height: 120px;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.volume-track {
    position: relative;
    width: 8px;
    height: 120px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    overflow: hidden;
}

.volume-fill {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 60%;
    background: linear-gradient(to top, #ffffff, rgba(255, 255, 255, 0.6));
    border-radius: 4px;
    transition: height 0.05s ease-out;
    will-change: height;
}

.volume-thumb {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 20px;
    height: 20px;
    background: #ffffff;
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    transition: transform 0.05s ease-out;
    will-change: transform;
    z-index: 2;
}

.volume-thumb:hover {
    transform: translate(-50%, -50%) scale(1.2);
}

.volume-thumb:active {
    transform: translate(-50%, -50%) scale(1.1);
}

.volume-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: #ffffff;
    letter-spacing: 1px;
    text-transform: uppercase;
    opacity: 0.8;
}

/* Loading screen removed */



