﻿Result
 Source map
 Restructure
 Beautify

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

    .gallery-container {
      max-width: 900px;
      margin: 40px auto;
      text-align: center;
    }

    .main-image {
      width: 775px;
      height: 775px;
      margin: 0 auto 24px;
      border-radius: 16px;
      overflow: hidden;
      background: #1a1a1e;
      box-shadow: 0 12px 50px rgba(0,0,0,0.75);
    }

    .main-image img {
      width: 100%;
      height: 100%;
      object-fit: cover;
      display: block;
      transition: transform 0.1s ease;
    }

    .main-image img:hover {
      transform: scale(1.04);
    }

    .thumbnails {
      display: flex;
      gap: 14px;
      justify-content: center;
      flex-wrap: wrap;
      max-width: 700px;
      margin: 0 auto;
    }

    .thumbnail {
      width: 110px;
      height: 110px;
      border-radius: 10px;
      overflow: hidden;
      cursor: pointer;
      border: 3px solid transparent;
      transition: all 0.1s ease;
      box-shadow: 0 5px 15px rgba(0,0,0,0.5);
    }

    .thumbnail img {
      width: 100%;
      height: 100%;
      object-fit: cover;
      display: block;
    }

    .thumbnail:hover {
      transform: translateY(-8px) scale(1.08);
      box-shadow: 0 15px 35px rgba(89, 49, 104);
    }

    .thumbnail.active {
      border: 3px solid #946c8e;
      transform: scale(1.14);
      box-shadow: 0 12px 40px rgba(89, 49, 104);
    }

    @media (max-width: 775px) {
      .main-image {
        width: 100%;
        height: auto;
        aspect-ratio: 1 / 1;
        max-width: 775px;
      }

      .thumbnail {
        width: 90px;
        height: 90px;
      }
    }

    @media (max-width: 480px) {
      .thumbnail {
        width: 80px;
        height: 80px;
      }
    }