/* =========================================================
   ANJANA JOSHI STUDIO
   COMPLETE MUSEUM WEBSITE STYLES
========================================================= */


/* =========================================================
   RESET
========================================================= */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;

  background: #ffffff;
  color: #1f1f1f;

  font-family:
    Georgia,
    "Times New Roman",
    serif;

  font-size: 16px;
  line-height: 1.5;

  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.no-scroll {
  overflow: hidden;
}

button,
input,
textarea,
select {
  font: inherit;
}

button {
  color: inherit;
}

img {
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}


/* =========================================================
   SITE HEADER
========================================================= */

.site-header {
  position: relative;
  z-index: 30;

  width: 100%;

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

  padding: 24px 20px 10px;

  background: #ffffff;
}

.brand {
  display: inline-block;

  font-size: 18px;
  font-weight: 500;

  letter-spacing: 7px;
  line-height: 1.2;

  white-space: nowrap;

  transition: opacity 0.2s ease;
}

.brand:hover {
  opacity: 0.65;
}

.site-header nav {
  display: flex;
  align-items: center;

  gap: 44px;
}

.site-header nav a {
  position: relative;

  display: inline-block;

  padding-bottom: 8px;

  font-size: 12px;
  font-weight: 400;

  letter-spacing: 2px;
  text-transform: uppercase;

  white-space: nowrap;

  transition: opacity 0.2s ease;
}

.site-header nav a:hover {
  opacity: 0.55;
}

.site-header nav a.active::after {
  content: "";

  position: absolute;

  left: 0;
  right: 0;
  bottom: 0;

  height: 1px;

  background: #1f1f1f;
}


/* =========================================================
   GENERAL PAGE
========================================================= */

main {
  width: 100%;
}


/* =========================================================
   COLLECTION INTRODUCTION
========================================================= */

.intro {
  width: min(92vw, 760px);

  margin: 6px auto 0;

  text-align: center;
}

.intro h1 {
  margin: 0 0 8px;

  color: #1f1f1f;

  font-size: clamp(28px, 2.3vw, 38px);
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.intro p {
  margin: 0;

  color: #343434;

  font-size: 15px;
  line-height: 1.5;
}

.intro p + p {
  margin-top: 2px;
}


/* =========================================================
   WALL NAVIGATION
========================================================= */

.wall-nav {
  display: none;
  align-items: center;
  justify-content: center;

  gap: 18px;

  min-height: 38px;

  margin: 12px auto 8px;
}

.wall-nav button {
  width: 35px;
  height: 35px;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  padding: 0;

  border: 1px solid #d5d5d5;
  border-radius: 50%;

  background: #ffffff;
  color: #555555;

  font-size: 20px;
  line-height: 1;

  cursor: pointer;

  transition:
    border-color 0.2s ease,
    color 0.2s ease,
    opacity 0.2s ease;
}

.wall-nav button:hover:not(:disabled) {
  border-color: #777777;
  color: #111111;
}

.wall-nav button:disabled {
  opacity: 0.25;
  cursor: default;
}

#wallCounter {
  min-width: 84px;

  text-align: center;

  color: #4b4b4b;

  font-size: 11px;
  letter-spacing: 1px;
}


/* =========================================================
   SELECTED WORKS GRID
========================================================= */

.gallery-wall {
  width: min(95vw, 1500px);
  min-height: 0;

  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  align-items: start;

  gap: 28px 30px;

  margin: 20px auto 90px;
}

.wall-item {
  position: relative;
  width: 100%;
  min-width: 0;

  overflow: visible;

  background: #ffffff;
  border: 1px solid #d5d5d5;
}

.wall-artwork-button {
  display: block;
  width: 100%;

  padding: 10px 10px 0;
  border: 0;

  background: transparent;
  color: inherit;
  cursor: pointer;
}

.frame {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;

  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;

  background: #f7f7f5;
}

.frame img {
  position: relative;
  z-index: 1;

  display: block;
  width: 100%;
  height: 100%;

  object-fit: contain;

  user-select: none;
  pointer-events: none;
}



.frame::after {
    display: none;
}

/**
.frame::after {
  content: "";

  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 5;

  width: 145%;
  height: 58%;

  transform: translate(-50%, -50%) rotate(-33deg);

  background-image: url("../images/watermark.png");
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;

  opacity: 0.95;

  pointer-events: none;
  user-select: none;
}
**/

.artwork-caption {
  min-height: 96px;
  padding: 12px 14px 13px;

  background: #ffffff;
  color: #202020;

  font-family:
    Georgia,
    "Times New Roman",
    serif;

  font-size: 12px;
  line-height: 1.35;
}

.artwork-status {
  margin: 0 0 8px;

  font-size: 11px;
  letter-spacing: 0.13em;
  line-height: 1.2;
}

.artwork-details {
  display: flex;
  align-items: baseline;
  justify-content: space-between;

  gap: 10px;
}

.artwork-medium,
.artwork-dimensions {
  min-width: 0;
}

.artwork-medium {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.artwork-dimensions {
  flex: 0 0 auto;
  text-align: right;
  white-space: nowrap;
}

.artwork-enquiry-link {
  display: block;
  width: fit-content;

  margin: 8px 0 0 auto;
  padding-bottom: 1px;

  border-bottom: 1px solid transparent;

  text-align: right;
  line-height: 1.2;

  transition:
    opacity 0.2s ease,
    border-color 0.2s ease;
}

.artwork-enquiry-link:hover,
.artwork-enquiry-link:focus-visible {
  opacity: 0.6;
  border-bottom-color: currentColor;
}

.wall-item:hover {
  z-index: 2;
}

.wall-item:hover .frame img {
  transform: scale(1.01);
}

.frame img {
  transition: transform 0.22s ease;
}

/* =========================================================
   COLLECTION LOADING AND EMPTY STATES
========================================================= */

.gallery-loading,
.empty-gallery {
  position: absolute;

  top: 100px;
  left: 50%;

  width: min(90%, 600px);

  transform: translateX(-50%);

  margin: 0;

  text-align: center;

  color: #777777;

  font-size: 13px;
  letter-spacing: 0.7px;
}

.empty-gallery p {
  margin: 4px 0;
}


/* =========================================================
   FULL-SCREEN ARTWORK VIEWER
========================================================= */

.viewer {
  position: fixed;

  inset: 0;

  z-index: 1000;

  display: none;
  align-items: center;
  justify-content: center;

  padding: 42px;

  background: rgba(250, 250, 250, 0.97);

  opacity: 0;
  visibility: hidden;

  transition:
    opacity 0.25s ease,
    visibility 0.25s ease;
}

.viewer.open {
  display: flex;

  opacity: 1;
  visibility: visible;
}

.viewer-card {
  width: min(92vw, 1320px);
  height: min(88vh, 820px);

  display: grid;

  grid-template-columns:
    minmax(0, 1.65fr)
    minmax(290px, 0.65fr);

  overflow: hidden;

  background: #ffffff;

  border: 1px solid #dedede;

  box-shadow:
    0 22px 70px rgba(0, 0, 0, 0.16);
}


/* =========================================================
   VIEWER IMAGE AREA
========================================================= */

.viewer-image-wrap {
  position: relative;

  min-width: 0;
  min-height: 0;

  display: flex;
  align-items: center;
  justify-content: center;

  overflow: hidden;

  padding: 45px;

  background: #f6f6f4;
}

.viewer-image-wrap img {
  display: block;

  max-width: 100%;
  max-height: 100%;

  width: auto;
  height: auto;

  object-fit: contain;

  transform-origin: center center;

  transition: transform 0.18s ease;
}


/* =========================================================
   VIEWER INFORMATION PANEL
========================================================= */

.viewer-info {
  display: flex;
  flex-direction: column;
  align-items: flex-start;

  padding: 65px 48px;

  overflow-y: auto;

  background: #ffffff;
}

.viewer-info h1 {
  margin: 0 0 18px;

  color: #222222;

  font-size: 33px;
  font-weight: 400;
  line-height: 1.2;
}

.viewer-info p {
  margin: 0 0 8px;

  color: #555555;

  font-size: 14px;
  line-height: 1.55;
}

#viewerMedium {
  font-style: italic;
}

#viewerYear:empty {
  display: none;
}

.viewer-info .line {
  width: 48px;
  height: 1px;

  margin: 25px 0;

  background: #bdbdbd;
}

#viewerNote {
  margin-bottom: 32px;

  color: #444444;

  line-height: 1.7;
}


/* =========================================================
   ENQUIRE ABOUT THIS WORK LINK
========================================================= */

.primary-link {
  display: inline-block;

  margin-top: auto;

  padding: 12px 0 7px;

  border-bottom: 1px solid #222222;

  color: #222222;

  font-size: 12px;
  letter-spacing: 1.7px;
  text-transform: uppercase;

  transition:
    opacity 0.2s ease,
    border-color 0.2s ease;
}

.primary-link:hover {
  opacity: 0.55;
  border-color: #777777;
}


/* =========================================================
   VIEWER CLOSE BUTTON
========================================================= */

.viewer-close {
  position: fixed;

  top: 20px;
  right: 24px;

  z-index: 1020;

  width: 42px;
  height: 42px;

  display: flex;
  align-items: center;
  justify-content: center;

  padding: 0;

  border: 0;

  background: transparent;
  color: #333333;

  font-size: 34px;
  font-weight: 300;
  line-height: 1;

  cursor: pointer;

  transition:
    transform 0.2s ease,
    opacity 0.2s ease;
}

.viewer-close:hover {
  transform: rotate(5deg);
  opacity: 0.55;
}


/* =========================================================
   VIEWER SIDE NAVIGATION
========================================================= */

.side-nav {
  position: fixed;

  top: 50%;

  z-index: 1010;

  width: 48px;
  height: 48px;

  display: flex;
  align-items: center;
  justify-content: center;

  transform: translateY(-50%);

  padding: 0;

  border: 1px solid #d2d2d2;
  border-radius: 50%;

  background: rgba(255, 255, 255, 0.9);
  color: #4a4a4a;

  font-size: 32px;
  font-weight: 300;
  line-height: 1;

  cursor: pointer;

  transition:
    border-color 0.2s ease,
    color 0.2s ease,
    background 0.2s ease;
}

.side-nav:hover {
  border-color: #777777;
  color: #111111;
  background: #ffffff;
}

.side-left {
  left: 20px;
}

.side-right {
  right: 20px;
}


/* =========================================================
   ZOOM CONTROLS
========================================================= */

.zoom-controls {
  position: absolute;

  left: 50%;
  bottom: 20px;

  display: flex;
  align-items: center;

  gap: 10px;

  transform: translateX(-50%);

  padding: 7px 11px;

  border: 1px solid #d2d2d2;
  border-radius: 30px;

  background: rgba(255, 255, 255, 0.94);

  box-shadow:
    0 5px 18px rgba(0, 0, 0, 0.08);
}

.zoom-controls button {
  width: 29px;
  height: 29px;

  display: flex;
  align-items: center;
  justify-content: center;

  padding: 0;

  border: 0;
  border-radius: 50%;

  background: transparent;
  color: #333333;

  font-size: 17px;
  line-height: 1;

  cursor: pointer;

  transition: background 0.2s ease;
}

.zoom-controls button:hover {
  background: #eeeeee;
}

#zoomLevel {
  min-width: 48px;

  text-align: center;

  color: #555555;

  font-size: 11px;
  letter-spacing: 0.5px;
}


/* =========================================================
   HOME PAGE
========================================================= */

.home-page {
  min-height: 100vh;

  display: flex;
  flex-direction: column;

  background: #ffffff;
}

.home-page .site-header {
  flex: 0 0 auto;
}

.home-message {
  flex: 1;

  display: flex;
  align-items: center;
  justify-content: center;

  padding:
    80px
    24px
    150px;

  text-align: center;
}

.home-message h1 {
  margin: 0;

  color: #3f3f3f;

  font-size: clamp(27px, 3vw, 45px);
  font-weight: 400;
  line-height: 1.55;
}


/* =========================================================
   GENERAL CONTENT PAGES
========================================================= */

.content-page {
  width: min(88vw, 900px);

  margin: 75px auto 100px;
}

.content-page h1 {
  margin: 0 0 35px;

  font-size: 38px;
  font-weight: 400;
  line-height: 1.2;
}

.content-page h2 {
  margin: 38px 0 12px;

  font-size: 20px;
  font-weight: 400;
}

.content-page p {
  margin: 0 0 18px;

  color: #454545;

  line-height: 1.8;
}

.content-page ul {
  margin: 0;
  padding-left: 20px;
}

.content-page li {
  margin-bottom: 8px;

  line-height: 1.65;
}


/* =========================================================
   ENQUIRY PAGE
========================================================= */

/* =========================================================
   CONTACT / ENQUIRY PAGE
========================================================= */

.enquiry-page {
    width: 100%;
    padding: 35px 24px 70px;
}

.enquiry-panel {
    width: min(92vw, 760px);
    margin: 0 auto;
}

.enquiry-panel > h1 {
    margin: 0 0 24px;

    color: #222;

    font-size: 30px;
    font-weight: 400;
    line-height: 1.2;
}

.enquiry-form {
    width: 100%;
}

.enquiry-top {
    display: block;
}

.enquiry-fields {
    display: grid;
    gap: 10px;
}

.form-row {
    display: grid;

    grid-template-columns: 130px minmax(0,1fr);

    gap: 16px;

    align-items: center;
}

.form-row label,
.message-field label {

    color: #222;

    font-size: 13px;

    font-weight: 600;

    line-height: 1.25;
}

.form-row input,
.message-field textarea {

    width: 100%;

    border: 1px solid #444;

    background: #fff;

    color: #222;

    outline: none;
}

.form-row input {

    min-height: 36px;

    padding: 6px 10px;

    font-size: 14px;
}

.form-row input:focus,
.message-field textarea:focus {

    border-color: #777;
}

.phone-fields {

    display: grid;

    grid-template-columns: 62px minmax(0,1fr);

    gap: 8px;
}

.country-code {

    text-align: center;
}

.message-field {

    margin-top: 14px;
}

.message-field label {

    display: block;

    margin-bottom: 8px;
}

.message-field textarea {

    display: block;

    min-height: 120px;

    padding: 10px;

    resize: vertical;

    font-family:
        Georgia,
        "Times New Roman",
        serif;

    font-size: 14px;

    line-height: 1.5;
}

.form-actions {

    display: flex;

    justify-content: flex-end;

    margin-top: 14px;
}

.form-actions button {

    min-width: 110px;

    padding: 9px 18px;

    border: 1px solid #333;

    background: #fff;

    color: #222;

    font-size: 14px;

    font-weight: 500;

    cursor: pointer;

    transition:
        background .2s ease,
        color .2s ease,
        opacity .2s ease;
}

.form-actions button:hover {

    background: #222;

    color: #fff;
}

.form-actions button:disabled {

    opacity: .45;

    cursor: wait;
}

.form-status {

    min-height: 18px;

    margin-top: 10px;

    text-align: right;

    font-size: 12px;
}

.form-status.success {

    color: #2f6332;
}

.form-status.error {

    color: #a32f2f;
}

/* =========================================================
   SELECTED ARTWORK IN ENQUIRY PAGE
========================================================= */

.enquiry-artwork {
  width: 100%;

  padding: 10px;

  border: 1px solid #d5d5d5;

  background: #ffffff;

  box-shadow:
    0 7px 18px rgba(0, 0, 0, 0.12);
}

.enquiry-artwork[hidden] {
  display: none;
}

.enquiry-artwork img {
  display: block;

  width: 100%;
  max-height: 250px;

  object-fit: contain;

  background: #f7f7f5;
}

.enquiry-artwork p {
  margin: 12px 4px 3px;

  text-align: center;

  font-size: 13px;
  line-height: 1.4;
}


/* =========================================================
   ENQUIRY FORM STATUS
========================================================= */

.form-status {
  min-height: 24px;

  margin-top: 20px;

  text-align: right;

  font-size: 14px;
}

.form-status.success {
  color: #315d36;
}

.form-status.error {
  color: #8a2d2d;
}


/* =========================================================
   TABLET
========================================================= */

@media (max-width: 900px) {

  .site-header {
    display: block;

    padding:
      22px
      18px
      12px;

    text-align: center;
  }

  .brand {
    font-size: 16px;
    letter-spacing: 5px;
  }

  .site-header nav {
    justify-content: center;

    gap: 25px;

    margin-top: 19px;
  }

  .site-header nav a {
    font-size: 10px;
    letter-spacing: 1.6px;
  }

  .intro {
    margin-top: 16px;

    padding: 0 20px;
  }

  .gallery-wall {
    width: calc(100% - 32px);
    min-height: 360px;

    margin-top: 18px;
    margin-bottom: 60px;
  }

  .frame {
    padding: 8px;
  }

  .viewer {
    align-items: flex-start;

    padding:
      70px
      16px
      18px;

    overflow-y: auto;
  }

  .viewer-card {
    width: 100%;
    height: auto;
    min-height: calc(100vh - 95px);

    display: block;

    overflow: visible;
  }

  .viewer-image-wrap {
    min-height: 58vh;

    padding:
      35px
      25px
      70px;
  }

  .viewer-info {
    min-height: auto;

    padding:
      38px
      28px
      45px;
  }

  .viewer-info h1 {
    font-size: 29px;
  }

  .viewer-close {
    top: 13px;
    right: 12px;
  }

  .side-nav {
    top: 47%;

    width: 41px;
    height: 41px;

    font-size: 27px;
  }

  .side-left {
    left: 8px;
  }

  .side-right {
    right: 8px;
  }

  .zoom-controls {
    bottom: 18px;
  }

  .home-message {
    padding-bottom: 100px;
  }

  .enquiry-page {
    padding:
      40px
      22px
      75px;
  }

  .enquiry-panel {
    width: min(100%, 720px);
  }

  .enquiry-top {
    grid-template-columns: 1fr;

    gap: 30px;
  }

  .enquiry-artwork {
    width: min(240px, 100%);

    grid-row: 1;

    justify-self: center;
  }

  .form-row {
    grid-template-columns:
      165px
      minmax(0, 1fr);
  }

  .form-row label,
  .message-field label {
    font-size: 18px;
  }
}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 520px) {

  .site-header {
    padding:
      20px
      12px
      10px;
  }

  .brand {
    font-size: 14px;
    letter-spacing: 3.6px;
  }

  .site-header nav {
    flex-wrap: wrap;

    gap:
      12px
      20px;

    margin-top: 17px;
  }

  .site-header nav a {
    font-size: 9px;
    letter-spacing: 1.2px;
  }

  .intro {
    width: 100%;

    padding: 0 18px;
  }

  .intro p {
    font-size: 13px;
  }

  .wall-nav {
    gap: 12px;

    margin-top: 11px;
  }

  .wall-nav button {
    width: 31px;
    height: 31px;

    font-size: 18px;
  }

  #wallCounter {
    min-width: 72px;

    font-size: 10px;
  }

  .gallery-wall {
    width: calc(100% - 20px);
    min-height: 300px;

    margin-bottom: 45px;
  }

  .frame {
    padding: 6px;

    box-shadow:
      0 5px 12px rgba(0, 0, 0, 0.12);
  }

  .wall-item:hover .frame {
    transform: none;
  }


  .viewer {
    padding:
      58px
      8px
      8px;
  }

  .viewer-card {
    min-height: calc(100vh - 68px);

    border: 0;
  }

  .viewer-image-wrap {
    min-height: 52vh;

    padding:
      28px
      16px
      68px;
  }

  .viewer-info {
    padding:
      30px
      21px
      38px;
  }

  .viewer-info h1 {
    font-size: 25px;
  }

  .viewer-info p {
    font-size: 13px;
  }

  .primary-link {
    width: 100%;

    text-align: center;
  }

  .side-nav {
    width: 37px;
    height: 37px;

    font-size: 25px;
  }

  .side-left {
    left: 4px;
  }

  .side-right {
    right: 4px;
  }

  .viewer-close {
    top: 9px;
    right: 8px;

    width: 38px;
    height: 38px;

    font-size: 31px;
  }

  .zoom-controls {
    gap: 7px;

    padding: 6px 8px;
  }

  .zoom-controls button {
    width: 27px;
    height: 27px;
  }

  #zoomLevel {
    min-width: 42px;

    font-size: 10px;
  }

  .home-message {
    padding:
      60px
      20px
      90px;
  }

  .home-message h1 {
    font-size: 25px;
  }

  .content-page {
    width: calc(100% - 36px);

    margin:
      48px
      auto
      70px;
  }

  .content-page h1 {
    font-size: 31px;
  }

  .enquiry-page {
    padding:
      35px
      18px
      60px;
  }

  .enquiry-panel > h1 {
    margin-bottom: 30px;

    font-size: 29px;
  }

  .form-row {
    display: block;
  }

  .form-row label {
    display: block;

    margin-bottom: 8px;
  }

  .enquiry-fields {
    gap: 20px;
  }

  .phone-fields {
    grid-template-columns:
      68px
      minmax(0, 1fr);
  }

  .message-field {
    margin-top: 26px;
  }

  .message-field textarea {
    min-height: 210px;
  }

  .form-actions {
    justify-content: stretch;
  }

  .form-actions button {
    width: 100%;
  }

  .form-status {
    text-align: center;
  }
}



/* =========================================================
   SELECTED WORKS RESPONSIVE GRID
========================================================= */

@media (max-width: 1200px) {
  .gallery-wall {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .gallery-wall {
    width: calc(100% - 32px);
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px 22px;
  }
}

@media (max-width: 650px) {
  .gallery-wall {
    width: calc(100% - 24px);
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px 14px;
  }

  .artwork-caption {
    min-height: 104px;
    padding: 10px;
    font-size: 10px;
  }

  .artwork-status {
    font-size: 9px;
  }

  .artwork-details {
    display: block;
  }

  .artwork-dimensions {
    display: block;
    margin-top: 3px;
    text-align: left;
  }
}

@media (max-width: 400px) {
  .gallery-wall {
    grid-template-columns: 1fr;
  }
}


/* =========================================================
   ARTWORK ENQUIRY MODAL
========================================================= */

.enquiry-modal[hidden] {
  display: none !important;
}

.enquiry-modal {
  position: fixed;
  inset: 0;
  z-index: 2000;

  display: flex;
  align-items: center;
  justify-content: center;

  padding: 28px;

  opacity: 0;
  visibility: hidden;
  pointer-events: none;

  transition:
    opacity 0.22s ease,
    visibility 0.22s ease;
}

.enquiry-modal.open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.enquiry-modal-backdrop {
  position: absolute;
  inset: 0;

  background: rgba(245, 245, 243, 0.9);

  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
}

.enquiry-modal-card {
  position: relative;
  z-index: 1;

  width: min(94vw, 1180px);
  max-height: 92vh;

  display: grid;
  grid-template-columns:
    minmax(260px, 0.9fr)
    minmax(360px, 1.1fr);

  overflow: auto;

  background: #ffffff;
  border: 1px solid #dddddd;
  border-radius: 8px;

  box-shadow:
    0 24px 70px rgba(0, 0, 0, 0.16);
}

.enquiry-modal-close {
  position: absolute;
  top: 12px;
  right: 15px;
  z-index: 10;

  width: 38px;
  height: 38px;

  display: flex;
  align-items: center;
  justify-content: center;

  padding: 0;
  border: 0;

  background: rgba(255, 255, 255, 0.92);
  color: #333333;

  font-size: 29px;
  line-height: 1;

  cursor: pointer;
}

.enquiry-modal-artwork {
  min-width: 0;
  min-height: 0;

  display: flex;
  flex-direction: column;

  background: #f7f7f5;
}

.enquiry-modal-image-wrap {
  flex: 1;
  min-height: min(48vh, 520px);

  display: flex;
  align-items: center;
  justify-content: center;

  overflow: hidden;

  background: #f3f3f1;
}

.enquiry-modal-image-wrap img {
  display: block;

  width: 100%;
  height: 100%;
  max-height: 68vh;

  object-fit: contain;
}

/* ==========================================
   WATERMARK IN ENQUIRY WINDOW
========================================== */

.modal-watermarked-image {
    position: relative;

    width: 100%;
    height: 100%;

    display: flex;
    justify-content: center;
    align-items: center;

    overflow: hidden;
}


.modal-watermarked-image::after {
    display: none;
}

/**
.modal-watermarked-image::after {
    content: "";
    position: absolute;
    top: 56%;
    left: 54%;
    width: 66%;
    height: 66%;
    transform:
        translate(-50%, -50%)
        rotate(-30deg);

    background-image:
        url("../images/watermark.png");

    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;

    opacity: 0.55;
    pointer-events: none;
    z-index: 5;
}
**/


.modal-watermarked-image img {

    position: relative;

    z-index: 1;

    width: 100%;
    height: 100%;

    object-fit: contain;
}

.enquiry-modal-description {
  padding: 15px 18px 18px;

  background: #ffffff;
  border-top: 1px solid #dedede;
}

.enquiry-modal-small-label {
  margin: 0 0 4px;

  color: #777777;

  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.enquiry-modal-description h2 {
  margin: 0 0 5px;

  font-size: 20px;
  font-weight: 400;
}

.enquiry-modal-description p:last-child {
  margin: 0;

  color: #555555;
  font-size: 12px;
}

.enquiry-modal-form-area {
  min-width: 0;

  padding: 30px 34px 24px;
  overflow-y: auto;
  max-height: 92vh;
  background: #ffffff;
}

.enquiry-modal-form-area > h2 {
  margin: 0 0 7px;

  font-size: 29px;
  font-weight: 400;
}

.enquiry-modal-introduction {
  margin: 0 0 25px;

  color: #555555;

  font-size: 13px;
  line-height: 1.55;
}

.modal-contact-form {
  display: grid;
  gap: 9px;
}

.modal-form-row {
  display: grid;
  grid-template-columns: 125px minmax(0, 1fr);

  gap: 16px;
  align-items: center;
}

.modal-form-row label,
.modal-message-field label {
  color: #222222;

  font-size: 13px;
  font-weight: 600;
}

.modal-form-row input,
.modal-message-field textarea {
  width: 100%;

  border: 1px solid #444444;
  border-radius: 0;

  background: #ffffff;
  color: #222222;

  outline: none;
}

.modal-form-row input {
  min-height: 36px;
  padding: 6px 9px;
}

.modal-phone-fields {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);

  gap: 8px;
}

.modal-country-code {
  text-align: center;
}

.modal-message-field {
  margin-top: 5px;
}

.modal-message-field label {
  display: block;
  margin-bottom: 8px;
}

.modal-message-field textarea {
  display: block;
  min-height: 110px;

  padding: 10px;
  resize: vertical;

  font-family:
    Georgia,
    "Times New Roman",
    serif;

  font-size: 14px;
  line-height: 1.5;
}

.modal-form-actions {
  display: flex;
  justify-content: flex-end;
}

.modal-form-actions button {
  min-width: 110px;

  padding: 9px 18px;

  border: 1px solid #333333;

  background: #ffffff;
  color: #222222;

  cursor: pointer;
}

.modal-form-actions button:hover {
  background: #222222;
  color: #ffffff;
}

.modal-form-message {
  min-height: 20px;

  margin: 0;

  text-align: right;

  color: #4b654c;
  font-size: 12px;
}

@media (max-width: 850px) {
  .enquiry-modal {
    align-items: flex-start;

    padding: 65px 16px 18px;
    overflow-y: auto;
  }

  .enquiry-modal-card {
    width: 100%;
    max-height: none;

    display: block;
    overflow: visible;
  }

  .enquiry-modal-image-wrap {
    min-height: 430px;
    height: 58vh;
  }

  .enquiry-modal-form-area {
    padding: 32px 25px 30px;
  }
}

@media (max-width: 520px) {
  .enquiry-modal {
    padding: 52px 8px 8px;
  }

  .enquiry-modal-card {
    border-radius: 0;
  }

  .enquiry-modal-image-wrap {
    min-height: 320px;
    height: 52vh;
  }

  .enquiry-modal-form-area {
    padding: 28px 18px;
  }

  .modal-form-row {
    display: block;
  }

  .modal-form-row label {
    display: block;
    margin-bottom: 6px;
  }

  .modal-contact-form {
    gap: 17px;
  }

  .modal-form-actions button {
    width: 100%;
  }
}


/* =========================================================
   REDUCED MOTION
========================================================= */

@media (prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;

    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}

/* =========================================================
   INTERNATIONAL PHONE FIELDS AND FORM VALIDATION
========================================================= */

.phone-input-block,
.field-input-block {
  min-width: 0;
  width: 100%;
}

.phone-input-block .iti {
  width: 100%;
}

.phone-input-block .iti__country-container {
  font-family:
    Georgia,
    "Times New Roman",
    serif;
}

.phone-input-block .iti__selected-country {
  min-width: 92px;
  border-right: 1px solid #b8b8b8;
  background: #fafafa;
}

.phone-input-block .iti__selected-dial-code {
  margin-left: 6px;
}

.phone-input-block .iti__dropdown-content {
  z-index: 10020;
  max-width: min(390px, 86vw);
  font-family:
    Georgia,
    "Times New Roman",
    serif;
}

.phone-input-block input {
  padding-left: 106px !important;
}

.field-error {
  display: block;
  min-height: 17px;
  margin-top: 4px;
  color: #9d2929;
  font-size: 11px;
  line-height: 1.35;
}

.modal-form-row input.field-invalid {
  border-color: #9d2929;
  box-shadow: 0 0 0 1px #9d2929;
}

.modal-form-message.is-error {
  color: #9d2929;
}

.modal-form-actions button:disabled {
  cursor: wait;
  opacity: 0.6;
}

.form-honeypot {
  position: absolute !important;
  left: -10000px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}

@media (max-width: 620px) {
  .phone-input-block input {
    padding-left: 102px !important;
  }
}


/** ----- About Page ----**/
/* =========================================================
   ABOUT PAGE
========================================================= */

.about-page {
  width: min(94vw, 1720px);
  margin: 60px auto 80px;
}

.about-layout {
  display: grid;
  grid-template-columns: 365px minmax(0, 1fr);
  gap: 78px;
  align-items: start;
}

.about-left {
  min-width: 0;
}

.about-portrait {
  display: block;
  width: 100%;
  height: auto;
}

.about-right {
  min-width: 0;
  color: #222222;
  font-size: clamp(20px, 1.55vw, 30px);
  line-height: 1.55;
}

.about-right p {
  margin: 0 0 36px;
}

.about-right p:last-child {
  margin-bottom: 0;
}


/* TABLET */

@media (max-width: 1000px) {

  .about-page {
    width: min(90vw, 820px);
    margin-top: 45px;
  }

  .about-layout {
    grid-template-columns: 280px minmax(0, 1fr);
    gap: 42px;
  }

  .about-right {
    font-size: 18px;
    line-height: 1.6;
  }

  .about-right p {
    margin-bottom: 26px;
  }
}


/* MOBILE */

@media (max-width: 700px) {

  .about-page {
    width: calc(100% - 36px);
    margin: 35px auto 65px;
  }

  .about-layout {
    display: block;
  }

  .about-portrait {
    width: min(300px, 100%);
    margin: 0 auto 30px;
  }

  .about-right {
    font-size: 16px;
    line-height: 1.65;
  }

  .about-right p {
    margin-bottom: 22px;
  }
}

/** About page till here **/

/** added for Artist page **/
/* =========================================================
   PROFILE PAGE
========================================================= */

.profile-page {
  width: min(88vw, 1100px);
  margin: 65px auto 100px;
}

.profile-content {
  width: 100%;
}

.profile-content h1 {
  margin: 0 0 42px;

  color: #222222;

  font-family:
    Georgia,
    "Times New Roman",
    serif;

  font-size: clamp(30px, 3vw, 44px);
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: 0.04em;
}

.profile-content p {
  max-width: 1000px;

  margin: 0 0 28px;

  color: #333333;

  font-family:
    Georgia,
    "Times New Roman",
    serif;

  font-size: clamp(17px, 1.35vw, 22px);
  font-weight: 400;
  line-height: 1.75;
}

.profile-content p:last-child {
  margin-bottom: 0;
}


/* TABLET */

@media (max-width: 900px) {

  .profile-page {
    width: calc(100% - 56px);
    margin: 50px auto 80px;
  }

  .profile-content h1 {
    margin-bottom: 32px;
  }

  .profile-content p {
    font-size: 17px;
    line-height: 1.7;
  }
}


/* MOBILE */

@media (max-width: 520px) {

  .profile-page {
    width: calc(100% - 36px);
    margin: 38px auto 65px;
  }

  .profile-content h1 {
    margin-bottom: 26px;
    font-size: 28px;
  }

  .profile-content p {
    margin-bottom: 22px;

    font-size: 16px;
    line-height: 1.65;
  }
}
/** added till here **/



/* Hide artwork year */
#viewerYear {
  display: none !important;
}

