body {
    font-family: Cambria, Cochin, Georgia, Times, 'Times New Roman', serif;
    font-size: 18px;
    margin: 0;
    padding: 0;
    color: #333;
    background-color: #f8f8f8;
    line-height: 140%;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}



main {
    /*margin: 0px 50px;*/
    padding-top: 67.5px;
    z-index: 0;
    flex-grow: 1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

main.fade-in {
  opacity: 1;
}


.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0px 30px;
    background-color: #fff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    position: sticky;
    z-index: 1;
}

h1 {
    margin: 20px 0px;
}

.logo {
    font-size: 45px;
    font-weight: bold;
    color: #333;
}

.navigation ul {
  list-style: none;
  display: flex;
  gap: 20px;
  margin: 0;
  padding: 0;
}

.navigation a {
  position: relative;
  text-decoration: none;
  color: #333;
  font-size: 16px;
  padding-bottom: 4px;
  transition: transform 0.3s, color 0.3s;
}

/*Исправленный hover */
.navigation a:hover {
  transform: scale(1.05);
  color: #20977d;
}

/*Подчёркивание активной ссылки */
.navigation a.active::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: #20977d;
  border-radius: 2px;
}


.welcome-section {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 40px;
    background-color: #fff;
    flex-wrap: wrap;
    gap: 40px;
}

.welcome-image {
    flex: 1 1 20%;
    max-width: 800px;
}

.welcome-image img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 10px;
}

.welcome-text {
    flex: 1 1 50%;
    min-width: 300px;
    font-size: 20px;
}

.exhibitions {
    padding: 40px 20px;
}

.exhibitions h2,
.announcements h2 {
    text-align: center;
    margin-bottom: 20px;
}

.exhibition-gallery {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    justify-content: center;
    margin-top: 30px;
}

.gallery-item {
    max-width: 240px;
    background-color: #fff;
    border-radius: 10px;
    padding: 15px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: transform 0.3s;
}

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

.gallery-item img {
    max-width: 100%;
    border-radius: 8px;
    margin-bottom: 10px;
}

footer {
    text-align: center;
    padding: 20px;
    background-color: #fff;
    border-top: 1px solid #ddd;
}

.contact-icons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 10px;
}
.contact-icons a img {
  width: 24px;
  height: 24px;
}

hr {
    display: inline;
}

.gallery-container {
    position: relative;
    width: 90%;
    margin: 50px auto;
    overflow: hidden;
}

.gallery {
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    width: 100%;
}

.gallery-track {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.gallery img {
    width: 20%;
    flex-shrink: 0;
    margin: 10px;
}

.gallery-button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    padding: 10px;
    cursor: pointer;
    z-index: 10;
}

.gallery-button.left {
    left: 10px;
}

.gallery-button.right {
    right: 10px;
}

.admin-buttons {
    display: flex;
    flex-direction: column;
    gap: 20px;
    max-width: 400px;
    margin-top: 40px;
}

.admin-buttons button {
    padding: 15px 20px;
    font-size: 16px;
    background-color: #333;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.admin-buttons button:hover {
    background-color: #555;
}

.announcements {
    margin: 40px 0;
    padding: 0 30px;
}

.announcement-scroll {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    padding-bottom: 10px;
    scroll-snap-type: x mandatory;
}

.announcement-scroll::-webkit-scrollbar {
    height: 8px;
}

.announcement-scroll::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 4px;
}

.announcement-item {
    min-width: 250px;
    flex-shrink: 0;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    scroll-snap-align: start;
    overflow: hidden;
}

.announcement-item img {
    width: 100%;
    height: 160px;
    object-fit: cover;
    display: block;
}

.announcement-item .info {
    padding: 10px;
}

.announcement-item .info h3 {
    margin: 0 0 5px;
    font-size: 16px;
}

.announcement-item .info p {
    margin: 0;
    font-size: 14px;
    color: #555;
}

form {
  display: flex;
  flex-direction: column;
  gap: 20px;
  background-color: #fff;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  max-width: 700px;
  margin: auto;
}

form label {
  font-weight: bold;
  margin-bottom: 5px;
}

form input[type="text"],
form input[type="email"],
form input[type="password"],
form input[type="file"],
form select,
form textarea {
  padding: 10px 12px;
  font-size: 16px;
  border: 1px solid #ccc;
  border-radius: 8px;
  background: #fdfdfd;
  transition: border 0.2s;
}

form input:focus,
form textarea:focus,
form select:focus {
  border-color: #666;
  outline: none;
}

form button[type="submit"],
form button {
  padding: 12px 20px;
  background-color: #333;
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  cursor: pointer;
  transition: background-color 0.3s;
}

form button:hover {
  background-color: #555;
}

.work-block {
  background-color: #fafafa;
  border: 1px solid #ccc;
  padding: 20px;
  border-radius: 12px;
  margin-top: 20px;
}

.work-block h3 {
  margin-top: 0;
  margin-bottom: 15px;
  font-size: 18px;
  font-weight: 600;
}

.work-block label {
  display: block;
  font-weight: bold;
  margin-top: 15px;
  margin-bottom: 5px;
}

.work-block input[type="text"],
.work-block input[type="file"],
.work-block select,
.work-block textarea {
  width: 100%;
  padding: 10px;
  font-size: 16px;
  border: 1px solid #ccc;
  border-radius: 8px;
  background: #fdfdfd;
  box-sizing: border-box;
}

.work-block input:focus,
.work-block textarea:focus,
.work-block select:focus {
  border-color: #666;
  outline: none;
}

/*Карточки работ художника */

#artworksContainer.exhibition-fullscreen {
  display: block;
}


.artist-gallery {
  column-width: 300px;
  column-gap: 20px;
  padding: 20px;
}

.artwork-card {
  break-inside: avoid;
  margin-bottom: 20px;
  width: 100%;
  position: relative;
  overflow: hidden;
}


.artist-info {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;

}


.artwork-card:hover {
  transform: translateY(-4px);
}

.artwork-card {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  break-inside: avoid;
  margin-bottom: 20px;
  width: 100%;
}

.artwork-card img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
}

.artwork-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 10px 15px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent);
  color: white;
  font-size: 16px;
  font-weight: bold;
  opacity: 0;
  transition: opacity 0.3s ease-in-out;
  pointer-events: none;
}

.artwork-card:hover .artwork-overlay {
  opacity: 1;
}

.like-indicator {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 9999px;
  padding: 4px 10px;
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 6px;
}


.like-indicator img,
.delete-btn img {
  height: 20px;
  object-fit: contain;
  display: block;
}


.delete-btn {
  position: absolute;
  bottom: 10px;
  right: 10px;
  background-color: rgba(255, 255, 255, 0.9);
  border: none;
  padding: 6px 10px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
  transition: background-color 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}




.delete-btn:hover {
  background-color: rgba(255, 100, 100, 0.9);
  color: white;
}


.artist-actions {
  display: flex;
  gap: 12px;
  margin-top: 20px;
  flex-wrap: wrap;
}

.artist-actions button {
  background-color: #e4e6eb;
  border: none;
  padding: 10px 18px;
  border-radius: 10px;
  font-size: 16px;
  cursor: pointer;
  transition: background-color 0.2s ease-in-out;
}

.artist-actions button:hover {
  background-color: #d0d3d8;
}


.exhibition-fullscreen .artwork-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 120px;
  padding: 0 20px;
}

.exhibition-fullscreen .artwork-block img {
  max-height: 90vh;
  max-width: 100%;
  height: auto;
  object-fit: contain;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.exhibition-fullscreen .artwork-block h3 {
  font-size: 24px;
  margin: 24px 0 10px;
  color: #333;
}

.exhibition-fullscreen .artwork-block p {
  font-size: 16px;
  color: #555;
  max-width: 800px;
  text-align: center;
}

.exhibition-fullscreen .artwork-block a {
  color: #20977d;
  text-decoration: none;
  margin-top: 10px;
  display: inline-block;
}

.exhibition-fullscreen .artwork-block a:hover {
  text-decoration: underline;
}



.modal-comment-form {
  max-width: 100% !important;
  margin: 0 !important;
  padding: 0;
  background: transparent;
  box-shadow: none;
}

.modal-comment-form textarea {
  width: 100%;
  border-radius: 8px;
  border: 1px solid #ccc;
  padding: 10px;
  font-size: 16px;
}

.modal-comment-form button {
  margin-top: 10px;
  background-color: #333;
  color: white;
  border: none;
  padding: 10px 18px;
  border-radius: 8px;
  font-size: 16px;
  cursor: pointer;
}

.modal-comment-form button:hover {
  background-color: #555;
}


.fade-card {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.fade-card.show {
  opacity: 1;
  transform: translateY(0);
}

:root {
  --primary-blue: #5d96db;
  --accent-gray: #eae3eb;
}
.cta-section {
  background-color: var(--accent-gray);
}
.cta-section a {
  background-color: var(--primary-blue);
}
.cta-section a:hover {
  background-color: #20977d;
}
    .info-image {
  flex: 1 1 20%;
  max-width: 800px;
}
.info-image img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 10px;
}

.sample-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 10px;
}

.sample-thumb {
  max-width: 180px;
  border-radius: 10px;
  cursor: pointer;
  transition: transform 0.2s;
}

.sample-thumb:hover {
  transform: scale(1.05);
}

.lightbox-img {
  max-height: 90vh;
  max-width: 90vw;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 0 30px rgba(0, 0, 0, 0.3);
}


.exhibition-works-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 16px;
  margin-top: 10px;
}

.exhibition-work-card {
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 12px;
  padding: 10px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.exhibition-work-card img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  cursor: pointer;
  transition: transform 0.2s;
}

.exhibition-work-card img:hover {
  transform: scale(1.03);
}

.lightbox-img {
  max-height: 90vh;
  max-width: 90vw;
  object-fit: contain;
  border-radius: 10px;
  box-shadow: 0 0 30px rgba(0,0,0,0.4);
}


@font-face {
    font-family: "ZTNeueRalewe";
    src: url("ZTNeueRalewe-Regular.ttf");
}
