:root {
    --primary: #3f51b5;
    --accent: #ffeb3b;
    --bg: #f4f6f8;
    --text: #333;
    --shadow: rgba(0, 0, 0, 0.15);
}

main{
    margin-bottom: 100px;
}
.gallery-container{
    display: flex;
    flex-direction: column;
    gap: 20px;
    width: 80%;
    min-width: 300px;
    max-width: 1500px;
    margin: 0 auto;
}
.slider {
    position: relative;
    width: auto;
    height: 80vh;
    max-height: 1200px;
    max-width: 1500px;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 8px 20px 6px var(--shadow);
    background: #fff;
    touch-action: pan-y;
    display: flex;
    align-items: center;
}
.slides {
    display: flex;
    transition: transform 0.5s ease;
}
.slide {
    min-width: 100%;
    user-select: none;
	display:flex;
	align-items:center;
}
.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 10px;
}
.nav {
    display: flex;
    justify-content: flex-end;
    pointer-events: none;
    gap: 10px;
}
button{
    min-width: 0;
    transition: all 0.3s ease-in-out;
}
.nav button {
    background: var(--accent);
    border: none;
    padding: 10px 15px;
    border-radius: 50%;
    cursor: pointer;
    pointer-events: all;
    font-size: 18px;
    box-shadow: 0 4px 10px var(--shadow);
    transition: background 0.3s;
}
.nav button:hover { background: #fff; }
.dots {
    display: flex;
    justify-content: center;
    gap: 8px;
}
.dots button {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: none;
    background: var(--shadow);
    cursor: pointer;
    transition: background 0.3s;
}
.dots button.active { background: var(--primary); }
@media (max-width: 600px) {
    .nav button { padding: 8px 12px; font-size: 16px; }
	
	.slider {max-height: 400px;}
}

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


.thumbnails img {
    border-radius: 10px;
    overflow: hidden;
    width: 100%;
    cursor: pointer;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.thumbnails img:hover {
    border: 2px solid #007bff;
}

.controls {
    text-align: center;
    margin: 20px 0;
}
.controls button {
    margin: 0 10px;
    padding: 10px 20px;
    font-size: 16px;
    cursor: pointer;
}

.nav button .icon {
    font-size: 18px;
    display: inline-block;
    line-height: 1;
}

.nav button {
    /* можно чуть сузить кнопки, если нужно */
    width: 40px;
    height: 40px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.nav button .material-icons {
    font-size: 24px;
    line-height: 1;
}

.slide img:fullscreen,
.slide img:-webkit-full-screen,
.slide img:-moz-full-screen,
.slide img:-ms-fullscreen {
    object-fit: contain;
    width: 100vw;
    height: 100vh;
    background-color: black;
}

.image-modal__content {
  display: none;
  max-width: 90%;
  max-height: 90%;
}
.image-modal.open .image-modal__content[src] {
  display: block;
}