/* style.css */
body {
    font-family: Arial, sans-serif;
    color: #fff;
    padding: 0;
    margin: 0;
    background: #696969;
    height: 100vh;
    margin: 0;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

header {
    text-align: center;
    margin-bottom: 30px;
}

h1 {
    text-align: center;
    margin:20px auto;
}

.image {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 20px auto;
}

main {
    margin-bottom: 30px;
}


footer {
    text-align: center;
    margin-top: 40px;
    color: #999;
}

/* menu */
a {
    text-decoration: none;
}

ul {
	padding-left: 0;
  margin-top: 0;
  margin-bottom: 0;
	list-style: none;
}

nav {
	background: #DC143C;
	font-size: 0;
	position: relative;
    
}

nav > ul > li {
	display: inline-block;
	font-size: 14px;
	padding: 0 15px;
	position: relative;
}

nav > ul > li > a {
	color: #fff;
	display: block;
	padding: 20px 0;
	border-bottom: 3px solid transparent;
  transition: all .3s ease;
}
nav > ul > li:hover > a {
	color: #444; 
	border-bottom: 3px solid #444;
}


.dropdown {position: static;}

.dropdown:hover .mega-menu {
    visibility: visible;
    opacity: 1;
}
        /* Контейнер галереи */
        .gallery {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
            gap: 20px;
            padding: 20px;
        }

        /* Стили для миниатюр */
        .gallery-item {
            background-color: #fff;
            border-radius: 8px;
            box-shadow: 0 2px 4px rgba(0,0,0,0.1);
            overflow: hidden;
            transition: transform 0.3s ease;
        }

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

        .gallery-item img {
            width: 100%;
            height: auto;
            display: block;
        }

        /* Модальное окно */
        .modal {
            display: none;
            position: fixed;
            z-index: 1;
            left: 0;
            top: 0;
            width: 100%;
            height: 100%;
            overflow: auto;
            background-color: rgba(0,0,0,0.9);
        }

        .modal-content {
            background-color: #fefefe;
            margin: 15% auto;
            padding: 20px;
            width: 80%;
            max-width: 800px;
            border-radius: 8px;
        }

        .modal-image {
            width: 100%;
            display: block;
        }

        .close {
            position: absolute;
            top: 15px;
            right: 35px;
            color: white;
            font-size: 40px;
            font-weight: bold;
            transition: 0.3s;
        }

        .close:hover,
        .close:focus {
            color: #999;
            text-decoration: none;
            cursor: pointer;
        }

        /* Адаптивность */
        @media (max-width: 768px) {
            .gallery {
                grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
            }
        }
/* other */
@media screen and (min-width: 600px) {
    .container {
        width: 80%;
    }
}

@media screen and (min-width: 900px) {
    .container {
        width: 70%;
    }
}

@media screen and (min-width: 1200px) {
    .container {
        width: 60%;
    }
}