/* CHANNMAS Creative Work Library 2.0.1 — Project Story website-only browser refinement.
   Keep archive pins, gallery artwork and the full-screen preview untouched. */

/* A contained, dark frame instead of a large light canvas. */
.chml-case-study .chml-case-cover--website {
  display: block;
  max-height: none;
  padding: clamp(8px, 1.25vw, 16px);
  overflow: hidden;
  border: 1px solid #315844;
  border-radius: 21px;
  background: linear-gradient(145deg, #203c2c 0%, #11281e 75%);
  box-shadow: 0 19px 55px rgba(1, 19, 11, .25);
}
.chml-case-study .chml-case-cover--website .chml-case-browser {
  margin: 0;
  overflow: hidden;
  border: 1px solid #446750;
  border-radius: 12px;
  background: #101f19;
  box-shadow: none;
}
.chml-case-study .chml-case-cover--website .chml-browser-bar {
  min-height: 44px;
  height: 44px;
  padding: 0 clamp(10px, 1.6vw, 18px);
  color: #bdd9c3;
  border-bottom: 1px solid #355440;
  background: #1a3428;
}
.chml-case-study .chml-case-cover--website .chml-browser-address {
  width: min(58%, 570px);
  min-width: 0;
  padding: 6px 10px;
  color: #bbd5c4;
  font-size: .72rem;
  background: #10291d;
  border: 1px solid #3a5846;
  border-radius: 7px;
}
.chml-case-study .chml-case-cover--website .chml-browser-device { color: #a8c9b4; }

/* Essential sizing fix: the global case-study image rule previously capped tall
   captures at 780px and object-fit:contain letterboxed them within the frame.
   An uncapped, full-width image now fills the viewport and crops naturally. */
.chml-case-study .chml-case-cover--website .chml-browser-viewport {
  width: 100%;
  min-height: 0;
  height: auto;
  aspect-ratio: 1.85;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: #739d81 #172e22;
  background: #10241b;
}
.chml-case-study .chml-case-cover--website .chml-browser-viewport .chml-scrolling-image {
  display: block;
  width: 100%;
  min-width: 100%;
  max-width: none;
  height: auto;
  min-height: 0;
  max-height: none;
  object-fit: fill;
  object-position: top left;
  border-radius: 0;
}
.chml-case-study .chml-case-cover--website .chml-browser-viewport::-webkit-scrollbar { width: 8px; }
.chml-case-study .chml-case-cover--website .chml-browser-viewport::-webkit-scrollbar-track { background: #172e22; }
.chml-case-study .chml-case-cover--website .chml-browser-viewport::-webkit-scrollbar-thumb { background: #739d81; border-radius: 8px; }
.chml-case-study .chml-case-cover--website .chml-case-preview-hint {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 8px 20px;
  padding: 14px 6px 2px;
  color: #b4d5bd;
  font-size: .66rem;
  font-weight: 700;
  letter-spacing: .13em;
}
.chml-case-study .chml-case-cover--website .chml-hint-arrow {
  font-size: 1.05rem;
  line-height: .6;
  margin-left: 5px;
  color: #c5e3ca;
}
@media (max-width: 720px) {
  .chml-case-study .chml-case-cover--website { border-radius: 15px; padding: 7px; }
  .chml-case-study .chml-case-cover--website .chml-case-browser { border-radius: 9px; }
  .chml-case-study .chml-case-cover--website .chml-browser-bar { height: 38px; min-height: 38px; padding-inline: 10px; }
  .chml-case-study .chml-case-cover--website .chml-browser-address { width: 63%; font-size: .6rem; }
  .chml-case-study .chml-case-cover--website .chml-browser-viewport { aspect-ratio: 1.15; }
  .chml-case-study .chml-case-cover--website .chml-case-preview-hint { font-size: .52rem; padding: 12px 4px 3px; letter-spacing: .08em; }
}
@media (prefers-reduced-motion: reduce) {
  .chml-case-study .chml-case-cover--website .chml-scrolling-image { transform: none !important; transition: none !important; }
}
