/******* Do not edit this file *******
Simple Custom CSS and JS - by Silkypress.com
Saved: Mar 27 2026 | 12:43:10 */
/* ==========================================================================
   CATS GALLERY (NEW LAYOUT)
   ========================================================================== */

/* Main Container */
.ats-cats-gallery {
  display: flex;
  flex-direction: column;
  gap: 30px; /* Space between nav and content */
}

/* Navigation (Top on SP) */
.ats-cats-nav {
  display: flex;
  flex-direction: row; /* Horizontal scroll on mobile */
  overflow-x: auto;
  gap: 10px;
  padding-bottom: 10px; /* Space for scrollbar */
  scrollbar-width: thin;
  scrollbar-color: var(--ats-accent) transparent;
}
.ats-cats-nav::-webkit-scrollbar {
  height: 4px;
}
.ats-cats-nav::-webkit-scrollbar-thumb {
  background-color: var(--ats-accent);
  border-radius: 4px;
}

.ats-cat-nav-item {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 120px;
  background: #fff;
  border: 1px solid var(--ats-border);
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s ease;
  text-align: left;
  color: var(--ats-primary);
  font-weight: bold;
  gap: 10px;
  padding: 10px 20px;
}

.ats-cat-nav-item:hover {
  background-color: var(--ats-bg-cream);
  color: var(--ats-accent);
}

.ats-cat-nav-item.active {
  background-color: var(--ats-primary);
  color: #fff;
  border-color: var(--ats-primary);
  box-shadow: 0 4px 10px rgba(93, 64, 55, 0.2);
}

/* Icon Styling */
.ats-nav-icon {
  display: block;
  width: 24px;
  margin-bottom: 8px; /* Mobile: Space below icon */
}
.ats-nav-icon svg {
  width: 100%;
  height: 100%;
  fill: currentColor;
}

.ats-nav-name {
  font-size: 1em;
  font-weight: bold;
  line-height: 1.3;
  font-family: var(--ats-font-mincho);
}

/* View Area */
.ats-cats-view {
  position: relative;
  min-height: 400px;
  background: #fff;
  border-radius: 20px;
  overflow: hidden;
}

.ats-cat-panel {
  display: none;
  flex-direction: column;
  gap: 20px;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.4s ease, transform 0.4s ease;
  animation: ats-panel-fade 0.5s ease forwards;
}

.ats-cat-panel.active {
  display: flex;
}

@keyframes ats-panel-fade {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Photo Frame (A4 Ratio) */
.ats-cat-photo-frame {
  width: 100%;
  max-width: 500px;
  margin: 0 auto;
  aspect-ratio: 210 / 297; /* A4 Ratio */
  background: #f0f0f0;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 10px 25px rgba(0,0,0,0.15);
  position: relative;
}

.ats-cat-poster {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Info Area */
.ats-cat-info-area {
  padding: 10px;
}

.ats-cat-header {
  padding-bottom: 10px;
  display: inline-block;
}

.ats-cat-role-label {
  display: inline-block;
  background: var(--ats-primary);
  color: #fff;
  padding: 4px 12px;
  border-radius: 99px;
  font-size: 0.85rem;
  margin-bottom: 8px;
  font-family: var(--ats-font-gothic);
}

.ats-cat-main-name {
  font-size: 1.8rem;
  color: var(--ats-primary);
  margin: 0;
  font-family: var(--ats-font-mincho);
}

.ats-cat-desc-text {
  font-size: 1rem;
  line-height: 1.8;
  color: var(--ats-text-body);
  margin-bottom: 1.5rem;
  text-align: justify;
}

.ats-cat-links {
  margin-top: auto;
}
.ats-cat-link {
  display: inline-block;
  color: var(--ats-primary);
  font-weight: bold;
  border-bottom: 1px solid currentColor;
  padding-bottom: 2px;
  transition: color 0.3s;
}
.ats-cat-link:hover {
  color: var(--ats-accent);
}


/* === PC Styles (Over 768px) === */
@media (min-width: 768px) {
  /* Layout: Nav on top, Content below */
  .ats-cats-gallery {
    flex-direction: column; 
    align-items: center; 
    gap: 50px;
  }

  /* Nav: Wrap to multiple lines centered */
  .ats-cats-nav {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    width: 100%;
    overflow: visible;
    position: static;
    gap: 15px;
    padding-bottom: 0;
  }

  .ats-cat-nav-item {
    /* Make them look like tabs/buttons */
    min-width: 180px;
    flex-direction: row; /* Icon Left, Text Right */
  }
  
  .ats-nav-name {
    font-size: 1.1rem;
    text-align: left;
  }

  /* View Area */
  .ats-cats-view {
    width: 100%;
    min-height: 600px;
  }

  /* Content Panel: 2 Columns (Photo | Info) */
  .ats-cat-panel.active {
    display: flex;
    flex-direction: row;
    align-items: center; /* Center vertically */
    gap: 60px;
    padding: 0 40px;
  }

  /* Make Photo Larger */
  .ats-cat-photo-frame {
    width: 45%; /* Much wider than before */
    max-width: none;
    margin: 0;
    max-height: 80vh; 
  }

  .ats-cat-info-area {
    flex: 1; /* Remaining width */
    padding: 0;
  }

  .ats-cat-main-name {
    font-size: 2.5rem;
  }

  .ats-cat-desc-text {
    font-size: 1.1rem;
  }
}