    .gallery-modal {
      position: fixed;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      background-color: rgba(0, 0, 0, 0.9);
      z-index: 200;
      display: flex;
      align-items: center;
      justify-content: center;
      opacity: 0;
      visibility: hidden;
      transition: opacity 0.3s ease, visibility 0.3s ease;
    }
    
    .gallery-modal.active {
      opacity: 1;
      visibility: visible;
    }
    
    .gallery-modal-content {
      position: relative;
      width: 100%;
      height: 100%;
      display: flex;
      align-items: center;
      justify-content: center;
      overflow: hidden;
	   padding: 15px;
      box-sizing: border-box;
    }
    
    .gallery-modal-image {
	max-width: 100%;
	max-height: 100%;
	object-fit: contain;
	transform-origin: center center;
	touch-action: none;
	user-select: none;
	-webkit-user-select: none;
	border: 1px solid #EEEEEE;
	border-radius: 10px;
    }
    
    .gallery-close-btn {
      position: fixed;
      top: 1.5rem;
      right: 1.5rem;
      width: 3rem;
      height: 3rem;
      background-color: rgba(255, 255, 255, 0.2);
      border: none;
      border-radius: 50%;
      color: white;
      font-size: 1.5rem;
      cursor: pointer;
      display: flex;
      align-items: center;
      justify-content: center;
      z-index: 210;
      transition: background-color 0.3s ease;
      backdrop-filter: blur(4px);
    }
    
    .gallery-close-btn:hover {
      background-color: rgba(255, 255, 255, 0.3);
    }
    
    .gallery-index {
      position: fixed;
      bottom: 1.5rem;
      left: 50%;
      transform: translateX(-50%);
      background-color: rgba(0, 0, 0, 0.6);
      color: white;
      padding: 0.5rem 1rem;
      border-radius: 20px;
      font-size: 0.8rem;
      z-index: 210;
      backdrop-filter: blur(4px);
    }
    
    .gallery-reset-btn {
      position: fixed;
      bottom: 1.5rem;
      right: 1.5rem;
      background-color: rgba(255, 255, 255, 0.2);
      color: white;
      border: none;
      border-radius: 50%;
      width: 3rem;
      height: 3rem;
      font-size: 0.75rem;
      cursor: pointer;
      display: flex;
      align-items: center;
      justify-content: center;
      z-index: 210;
      transition: background-color 0.3s ease;
      backdrop-filter: blur(4px);
      display: none;
    }
    
    .gallery-reset-btn:hover {
      background-color: rgba(255, 255, 255, 0.3);
    }
    
    .gallery-reset-btn.active {
      display: flex;
    }
    
    .gallery-nav-btn {
      position: fixed;
      top: 50%;
      transform: translateY(-50%);
      width: 3rem;
      height: 3rem;
      background-color: rgba(255, 255, 255, 0.2);
      border: none;
      border-radius: 50%;
      color: white;
      font-size: 1.5rem;
      cursor: pointer;
      display: flex;
      align-items: center;
      justify-content: center;
      z-index: 210;
      transition: background-color 0.3s ease;
      backdrop-filter: blur(4px);
    }
    
    .gallery-nav-btn:hover {
      background-color: rgba(255, 255, 255, 0.3);
    }
    
    .gallery-nav-btn.prev {
      left: 1.5rem;
    }
    
    .gallery-nav-btn.next {
      right: 1.5rem;
    }