/* =====================================================
   ENTRY SECTIONS
   Visual siblings of Showroom blocks
===================================================== */

/* =========================================
   BASE — DESKTOP FIRST (DEFAULT)
========================================= */

/* Layout containers */

.entry-navigation {

  max-width: 1200px;
  margin: 2rem auto 0;   /* smaller vertical spacing */

  display: grid;

  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));

  gap: 2rem;           /* tighter spacing between cards */

  padding: 0;

  /*box-sizing: border-box;*/

  align-items: stretch;

}

.entry-navigation::before {

  content: "";
  display: block;

  height: 1px;

  grid-column: 1 / -1;

  max-width: 720px;
  width: 100%;

  margin: 0 auto 2rem;

  background: rgba(0,0,0,0.08);
}

/* Cards */
.entry-group {

  display: flex;
  flex-direction: column;   /* title above text */
  align-items: flex-start;
  gap: 0.6rem;

  padding: 2.2rem 2.4rem;

  border-radius: 18px;
  background: rgba(255,255,255,0.45);
  border: 1px solid rgba(0,0,0,0.06);

  width: 100%;
  min-width: 0;

  box-sizing: border-box;

  backdrop-filter: none;

  transition:
    transform 0.18s ease,
    background 0.18s ease,
    box-shadow 0.18s ease;
}

/* Neutralize anchor styling */
.entry-group:link,
.entry-group:visited {
  text-decoration: none;
  color: inherit;
}

/* Variants */
.entry-group-projects { background: rgba(210, 220, 225, 0.45); }
.entry-group-systems  { background: rgba(225, 220, 205, 0.45); }
.entry-group-workshop { background: rgba(215, 225, 210, 0.45); }

/* Hover */
.entry-group:hover {
  transform: scale(1.025);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.08);
}
.entry-group-projects:hover { background: rgba(210, 220, 225, 0.60); }
.entry-group-systems:hover  { background: rgba(225, 220, 205, 0.60); }
.entry-group-workshop:hover { background: rgba(215, 225, 210, 0.60); }

.entry-section-label {
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #888;
  margin-bottom: 0.4rem;
}

/* Text */
.entry-title {
  margin: 0 0 0.8rem 0;
  font-size: 1.3rem;
  font-weight: 650;
  text-align: left;
}

.entry-description {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.5;
  opacity: 0.9;
  overflow-wrap: break-word;
}

/* Media */
.entry-item-media img {
  width: 64px;
  height: 64px;
  flex-shrink: 0;
}

/* Header / hero / layout */
.entry-header {
  max-width: 1200px;
  margin: 2.2rem auto 1.5rem;
  padding:0;
}

.entry-header-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 2.5rem;
  align-items: start;
}

.entry-header-text { 
  max-width: 680px;
  min-width: 0; /* 🔥 prevents grid overflow */
}

.entry-intro {
  margin: 0;
  font-size: 1.08rem;
  line-height: 1.65;
  font-weight: 500;
  opacity: 0.95;
  max-width: 620px;
}

.entry-hero {
  justify-self: end;
  width: auto;
  display: block;
}

.entry-hero img {
  width: 190px;
  height: auto;
  border-radius: 10px;
  max-width: 100%;   /* desktop cap */
}

/* Extended content */
.entry-extended-content {
  max-width: 1200px;
  margin: 1rem auto 0;
  padding:0;
}
/* Gallery */

.entry-gallery {
  max-width: 1200px;
  margin: 0 auto 0;
  padding:0;
}

.entry-gallery-summary {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin-top: 2rem;
  font-size: calc(var(--font-scale-toggle) * 1rem);
  font-weight: 700;
  cursor: pointer;
  list-style: none;
  padding: 0.4rem 0;
}

.entry-gallery-summary::-webkit-details-marker { display: none; }

.entry-gallery-summary::before {
  content: "▸ ";
  font-weight: 700;
  font-size: 1.2rem;
  transition: transform 0.2s ease;
}

.entry-gallery-details[open] .entry-gallery-summary::before {
  content: "▾ ";
}

.entry-gallery-content {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 1.5rem;
  margin-top: 1.8rem;
}

.entry-gallery-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.entry-gallery-item img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 8px;
}

/* Curated media */
.entry-curated-media {
  max-width: 1200px;
  margin: 1rem auto 0;
  padding:0;
}

.entry-curated-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 200px));
  justify-content: center;
  gap: 3rem;
}

.entry-curated-item {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 10px;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.entry-curated-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 22px rgba(0,0,0,0.10);
}

.entry-curated-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 10px;
  
  transition: transform 0.25s ease;
}

.entry-curated-item:hover img {
  transform: scale(1.04);
}

/* Buttons / actions */
.view-gallery-button {
  display: inline-block;
  
  padding: 0.55rem 1rem;

  background: transparent;
  border: 1px solid var(--color-text-primary);
  color: var(--color-text-primary);

  text-decoration: none;
  font-weight: 500;

  border-radius: 6px;              /* rounded corners */
  transition: all 0.2s ease;
}


.view-gallery-button:hover {
  background: rgba(0, 0, 0, 0.08); /* soft grey */
  border-color: rgba(0, 0, 0, 0.25);
  color: var(--color-text-primary);
}

.entry-action-bar {
    max-width: 1200px;
    margin: 1rem auto 2rem;
    padding:0;

    display: flex;
    justify-content: space-between;
    align-items: center;
}

.entry-back-button {
    text-decoration: none;
    color: var(--color-text-primary);
    font-weight: 500;
    padding: 0.4rem 0.8rem;
    border-radius: 6px;
    transition: background 0.2s ease;
}

.entry-back-button:hover {
    background: rgba(0,0,0,0.05);
}

/* =========================================
   LARGE TABLET (≤ 992px)
   HYBRID LAYOUT (FIXED)
========================================= */

@media (max-width: 992px) {

  .entry-navigation {
    grid-template-columns: repeat(2, 1fr);
  }

  .entry-header-inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto; /* 🔥 KEY FIX */
    gap: 2rem;
    align-items: start;
  }

  .entry-header-text {
    max-width: 100%;
  }

  .entry-intro {
    max-width: 100%;   /* 🔥 allow wrap earlier */
  }

  .entry-hero {
    justify-self: end;
    width: auto;
    max-width: 220px;   /* 🔥 controlled shrink */
  }

  .entry-hero img {
    width: 100%;
    height: auto;
    max-width: 220px;
  }

}

/* =========================================
    TABLET (≤ 768px)
========================================= */

@media (max-width: 768px) {

  .entry-group {
    padding: 1.6rem 1.8rem;
  }

  .entry-title {
    font-size: 1.35rem;
  }

  .entry-description {
    font-size: 0.9rem;
  }

  .entry-hero img {
    width: 180px;
  }

  .entry-item-media img {
    width: 60px;
    height: 60px;
  }

   .card {
    padding: 16px;
    gap: 12px;
  }

  .card-thumb {
    width: 56px;
    height: 56px;
  }

  .card-title {
    font-size: 1.05rem;
  }

  .card-desc {
    font-size: 0.92rem;
  }

 .entry-gallery-content {
    grid-template-columns: repeat(3, 1fr);
  }
 
 .entry-curated-grid {
    grid-template-columns: repeat(3, 160px);
    gap: 2rem;
  }

}

/* =========================================
   MOBILE (≤ 600px)
========================================= */


@media (max-width: 600px) {

    /* Page title */

  h1 {
    font-size: 1.8rem;
  }

  /* Intro subtitle */

  .intro-subtitle {
    font-size: 0.95rem;
  }

  .entry-hero img {
    width: 160px;
  }

  /* Intro paragraph */

  .intro-text {
    font-size: 0.95rem;
    line-height: 1.5;
  }

  
  /* Card titles */

  .showroom-item-title {
    font-size: 0.95rem;
  }

   /* Entry section cards */

  .entry-navigation {
    grid-template-columns: 1fr;
    margin-top: 2rem;
    gap: 1.5rem;
  }

  .entry-title {
    font-size: 1.1rem;
    margin-bottom: 0.6rem;
  }
  

  .entry-description {
    font-size: 0.85rem;
    line-height: 1.4;
  }

  /* Section titles */

  .showroom-group-title {
    font-size: 1.1rem;
  }

  .showroom-group-header {
    margin-bottom: 0.5rem;
  }

  .showroom-items {
    gap: 0.6rem;
  }

  .showroom-item {
    padding: 0.5rem 0.7rem;
  }

  .entry-group {
    padding: 1rem 1.1rem;
  }

  .entry-item-media img {
    width: 55px;
    height: 55px;
  }

  .footer {
    font-size: 0.75rem;
  }

  .footer-inner {
    display: flex;
    justify-content: space-between;
  }

  .showroom-group {
    padding: 0.2rem;
    padding-bottom: 0.5rem;
    margin-bottom: 0.2rem;
  }

  .showroom-wrapper {
    padding-top: 0.5rem;
    padding-bottom: 0.6rem;
  }

  .entry-hero img {
    max-width: 180px;
  }

  .entry-hero {
    margin-top: 0.4rem;
  }
}

/* =========================================
   SMALL MOBILE (≤ 480px)
========================================= */

@media (max-width: 480px) {

  .entry-group {
    padding: 0.9rem 1rem;
  }

  .entry-title {
    font-size: 1rem;
    margin-bottom: 0.25rem;
  }

  .entry-header-text {
    width: 100%;
    max-width: 100%;
  }

  .entry-intro {
    width: 100%;
    max-width: 100%;
    display: block;
  }

  .entry-extended-content {
    width: 100%;
    max-width: 100%;
  }

  .entry-description {
    display: none;
  }

  .entry-item-media img {
    width: 42px;
    height: 42px;
  }

  .entry-hero img {
    width: 140px;
  }
  .entry-navigation {
    display: none;
  }

  .showroom-group-title {
    font-size: 1.1rem;
  }

  .card {
    padding: 12px;
    gap: 10px;
    align-items: center;
  }

  .card-thumb {
    width: 42px;
    height: 42px;
  }

  .card-desc {
    display: none;
  }

  .card-title {
    font-size: 0.95rem;
  }

  .entry-gallery-content {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }

  .entry-curated-grid {
    grid-template-columns: repeat(2, 150px);
    gap: 1.4rem;
  }

}

/* =========================================
   MOBILE SIMPLIFICATION (≤ 768px)
   Remove hero for clarity
========================================= */

@media (max-width: 768px) {

  .entry-hero {
    display: none;   /* 🔥 remove thumbnail completely */
  }

  .entry-header-inner {
    grid-template-columns: 1fr;  /* full text width */
  }

  .entry-header-text {
    max-width: 100%;
  }

}