.grcg {
  width: min(1700px, calc(100vw - 48px));
  margin-top: 48px;
  margin-bottom: 48px;
  margin-left: calc(50% - min(850px, calc((100vw - 48px) / 2)));
  margin-right: calc(50% - min(850px, calc((100vw - 48px) / 2)));
  color: #f4f4f4;
  box-sizing: border-box;
}

.grcg__header {
  max-width: 920px;
  margin: 0 auto 28px;
  text-align: center;
}

.grcg__header h2 {
  margin: 0 0 12px;
  font-family: 'Cal Sans', Arial, sans-serif;
  font-size: clamp(34px, 5vw, 72px);
  line-height: 1.02;
  font-weight: 400;
}

.grcg__header p,
.grcg-message {
  color: rgba(255, 255, 255, .72);
  font-size: 17px;
  line-height: 1.65;
}

.grcg-message {
  max-width: 900px;
  margin: 24px auto;
  padding: 16px 18px;
  border: 1px solid rgba(255, 255, 255, .12);
  background: rgba(255, 255, 255, .04);
  border-radius: 8px;
  text-align: center;
}

.grcg-message--ok { border-color: rgba(42, 170, 92, .55); }
.grcg-message--error { border-color: rgba(220, 70, 70, .65); }


.grcg-review-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin: 0 0 18px;
  padding: 13px 16px;
  border: 1px solid rgba(78, 182, 255, .28);
  border-radius: 8px;
  background: rgba(78, 182, 255, .08);
  color: rgba(255, 255, 255, .78);
}


.grcg-mobile-cart {
  display: none;
}

.grcg-cart.is-attention {
  border-color: rgba(78, 182, 255, .7);
  box-shadow: 0 0 0 3px rgba(78, 182, 255, .14), 0 24px 60px rgba(0, 0, 0, .35);
}
.grcg-review-nav button {
  flex: 0 0 auto;
  padding: 10px 13px;
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: 7px;
  color: #fff;
  background: rgba(255, 255, 255, .1);
  cursor: pointer;
}

.grcg__form,
.grcg__layout {
  position: relative;
  overflow: visible;
}

body.is-client-gallery-page #body,
body.is-client-gallery-page #hlavni_kont,
body.is-client-gallery-page .kontent_1 {
  overflow: visible;
}

.grcg__layout {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 28px;
  align-items: start;
}

.grcg__photos {
  min-width: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.grcg-card {
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 8px;
  background: rgba(255, 255, 255, .045);
  box-shadow: 0 18px 40px rgba(0, 0, 0, .28);
  transition: transform .2s ease, border-color .2s ease, background .2s ease;
}

.grcg-card:hover,
.grcg-card.is-selected {
  transform: translateY(-2px);
  border-color: rgba(0, 153, 255, .55);
  background: rgba(0, 153, 255, .08);
}

.grcg-card__preview {
  display: block;
  position: relative;
  cursor: zoom-in;
}

.grcg-card__preview::after {
  content: "Zobrazit";
  position: absolute;
  right: 10px;
  bottom: 10px;
  padding: 5px 8px;
  border-radius: 999px;
  color: #fff;
  background: rgba(0, 0, 0, .58);
  font-size: 12px;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity .18s ease, transform .18s ease;
}

.grcg-card__preview:hover::after {
  opacity: 1;
  transform: translateY(0);
}

.grcg-card img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.grcg [hidden] {
  display: none !important;
}

.grcg-card__options,
.grcg-card__more,
.grcg-card__extras {
  display: grid;
  gap: 7px;
  padding: 12px 14px 6px;
}

.grcg-card__more,
.grcg-card__extras {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  padding-top: 0;
  padding-bottom: 0;
  transform: translateY(-6px);
  transition: max-height .26s ease, opacity .22s ease, padding .26s ease, transform .26s ease;
}

.grcg-card__more.is-open,
.grcg-card__extras.is-open {
  max-height: 760px;
  opacity: 1;
  padding-top: 2px;
  padding-bottom: 6px;
  transform: translateY(0);
}

.grcg-option {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto auto;
  gap: 7px;
  align-items: center;
  padding: 8px;
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 7px;
  background: rgba(0, 0, 0, .18);
}

.grcg-option.is-selected {
  border-color: rgba(78, 182, 255, .48);
  background: rgba(78, 182, 255, .1);
}

.grcg-option__name {
  min-width: 0;
  font-weight: 700;
}

.grcg-option__price,
.grcg-option__count {
  white-space: nowrap;
  color: rgba(255, 255, 255, .72);
  font-size: 13px;
}

.grcg-option__count {
  color: #4eb6ff;
  font-weight: 700;
}

.grcg-option__add,
.grcg-option__remove,
.grcg-card__toggle {
  border: 1px solid rgba(78, 182, 255, .32);
  border-radius: 7px;
  color: #fff;
  background: rgba(78, 182, 255, .12);
  cursor: pointer;
}

.grcg-option__add,
.grcg-option__remove {
  width: 32px;
  height: 32px;
  padding: 0;
  font-size: 20px;
  font-weight: 700;
  line-height: 1;
}

.grcg-option__remove {
  font-size: 20px;
}

.grcg-option__remove:disabled {
  opacity: .32;
  cursor: default;
}

.grcg-card__toggle {
  width: calc(100% - 28px);
  margin: 4px 14px 8px;
  padding: 10px 12px;
  background: rgba(255, 255, 255, .07);
}

.grcg-card__toggle.is-open {
  border-color: rgba(255, 255, 255, .28);
}

.grcg-card__picked {
  min-height: 18px;
  padding: 2px 14px 0;
  color: rgba(255, 255, 255, .76);
  font-size: 13px;
  line-height: 1.45;
}

.grcg-card__price {
  padding: 2px 14px 14px;
  color: #4eb6ff;
  font-family: 'Cal Sans', Arial, sans-serif;
  font-size: 22px;
}

.grcg-cart {
  min-width: 0;
  align-self: start;
  position: static;
  width: auto;
  z-index: 10;
  padding: 20px;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 8px;
  background: rgba(18, 18, 18, .88);
  box-shadow: 0 24px 60px rgba(0, 0, 0, .35);
}

.grcg-cart h3 {
  margin: 0 0 14px;
  font-family: 'Cal Sans', Arial, sans-serif;
  font-size: 34px;
  font-weight: 400;
}

.grcg-cart__items {
  display: grid;
  gap: 8px;
  margin: 0 0 16px;
  color: rgba(255, 255, 255, .72);
}

.grcg-cart__items div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 4px 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, .08);
}

.grcg-cart__items div span,
.grcg-cart__items div small {
  grid-column: 1;
}

.grcg-cart__items div strong {
  grid-column: 2;
  justify-self: end;
}

.grcg-cart__items small {
  color: #4eb6ff;
}

.grcg-cart__total {
  display: block;
  margin: 16px 0 18px;
  font-family: 'Cal Sans', Arial, sans-serif;
  font-size: 25px;
  font-weight: 400;
}

.grcg-cart__preview {
  width: 100%;
  margin: 0 0 18px;
  padding: 12px 14px;
  border: 1px solid rgba(78, 182, 255, .36);
  border-radius: 8px;
  color: #fff;
  background: rgba(78, 182, 255, .12);
  font-weight: 700;
  cursor: pointer;
}


.grcg.is-reviewing .grcg-card:not(.is-selected) {
  display: none;
}


.grcg.is-reviewing .grcg-cart__preview {
  border-color: rgba(255, 255, 255, .32);
  background: rgba(255, 255, 255, .1);
}
.grcg-cart__preview:disabled {
  opacity: .38;
  cursor: default;
}

.grcg-cart__customer {
  display: grid;
  gap: 12px;
}

.grcg-cart__customer label {
  display: grid;
  gap: 5px;
  color: rgba(255, 255, 255, .78);
}

.grcg-cart__customer input,
.grcg-cart__customer textarea {
  width: 100%;
  box-sizing: border-box;
  padding: 12px 13px;
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 6px;
  color: #fff;
  background: rgba(0, 0, 0, .35);
}

.grcg-cart__customer button {
  margin-top: 4px;
  padding: 13px 18px;
  border: 0;
  border-radius: 8px;
  color: #fff;
  background: linear-gradient(135deg, #0099ff, #0066cc);
  font-weight: 700;
  cursor: pointer;
}

@media (max-width: 1250px) {
  .grcg__photos {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .grcg {
    width: min(1100px, calc(100vw - 28px));
    margin-left: auto;
    margin-right: auto;
  }

  
.grcg__layout {
  position: relative;
    grid-template-columns: 1fr;
  }

  .grcg-cart {
    position: static;
    right: auto;
    width: auto;
    max-width: none;
    z-index: auto;
    max-height: none;
    overflow: visible;
  }
}

@media (max-width: 700px) {
  .grcg {
    width: calc(100vw - 18px);
    margin: 28px auto 96px;
  }

  .grcg__header {
    margin-bottom: 20px;
  }

  .grcg__header h2 {
    font-size: clamp(30px, 10vw, 44px);
  }

  .grcg__photos {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .grcg-card {
    border-radius: 7px;
  }

  .grcg-card img {
    aspect-ratio: 1 / 1;
  }

  .grcg-card__options,
  .grcg-card__more,
  .grcg-card__extras {
    padding: 8px 8px 4px;
  }

  .grcg-option {
    grid-template-columns: minmax(0, 1fr) 30px 30px;
    gap: 5px;
    padding: 7px;
  }

  .grcg-option__name {
    font-size: 13px;
  }

  .grcg-option__price {
    grid-column: 1;
    font-size: 12px;
  }

  .grcg-option__count {
    justify-self: end;
    font-size: 12px;
  }

  .grcg-option__add,
  .grcg-option__remove {
    width: 30px;
    height: 30px;
  }

  .grcg-card__toggle {
    width: calc(100% - 16px);
    margin: 4px 8px 8px;
    padding: 9px 8px;
    font-size: 12px;
  }

  .grcg-card__picked {
    padding: 2px 8px 0;
    font-size: 12px;
  }

  .grcg-card__price {
    padding: 2px 8px 10px;
    font-size: 18px;
  }

  .grcg-cart {
    scroll-margin-top: 18px;
    margin-top: 20px;
    padding: 16px;
  }

  .grcg-cart h3 {
    font-size: 30px;
  }

  .grcg-review-nav {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
  }

  .grcg-mobile-cart {
    position: fixed;
    left: 50%;
    right: auto;
    bottom: 14px;
    transform: translateX(-50%);
    z-index: 1200;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 58px;
    height: 58px;
    padding: 0;
    border: 1px solid rgba(78, 182, 255, .5);
    border-radius: 50%;
    color: #fff;
    background: rgba(18, 18, 18, .94);
    box-shadow: 0 14px 34px rgba(0, 0, 0, .5);
    backdrop-filter: blur(10px);
    cursor: pointer;
  }

  .grcg-mobile-cart::before {
    content: "";
    width: 30px;
    height: 30px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%234eb6ff' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='8' cy='21' r='1'/%3E%3Ccircle cx='19' cy='21' r='1'/%3E%3Cpath d='M2.05 2.05h2l2.66 12.42a2 2 0 0 0 2 1.58h9.78a2 2 0 0 0 1.95-1.57l1.65-7.43H5.12'/%3E%3C/svg%3E") center / contain no-repeat;
  }

  .grcg-mobile-cart span,
  .grcg-mobile-cart strong {
    display: none;
  }
}
@media (max-width: 900px) {
  body.is-client-gallery-page #header,
  body.is-client-gallery-page #body #header {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    z-index: 666 !important;
  }
}
@media (max-width: 780px) {
  body.is-client-gallery-page .grcg {
    padding-top: 104px;
  }
}
@media (max-width: 900px) {
  .grcg__photos {
    gap: 12px;
  }

  .grcg-card img {
    aspect-ratio: 1 / 1;
  }

  .grcg-card {
    border-radius: 9px;
    background: rgba(18, 18, 18, .82);
    box-shadow: 0 10px 24px rgba(0, 0, 0, .3);
  }

  .grcg-card:hover,
  .grcg-card.is-selected {
    transform: none;
    background: rgba(18, 18, 18, .88);
  }

  .grcg-card.is-selected {
    border-color: rgba(78, 182, 255, .55);
  }

  .grcg-card__preview::after {
    display: none;
  }

  .grcg-card__options,
  .grcg-card__more,
  .grcg-card__extras {
    gap: 0;
    padding: 0;
  }

  .grcg-option {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    grid-template-areas:
      "name plus minus"
      "price count count";
    column-gap: 6px;
    row-gap: 2px;
    align-items: center;
    min-height: 54px;
    padding: 9px 10px;
    border: 0;
    border-top: 1px solid rgba(255, 255, 255, .08);
    border-radius: 0;
    background: transparent;
  }

  .grcg-option.is-selected {
    background: rgba(78, 182, 255, .1);
    border-color: rgba(78, 182, 255, .24);
  }

  .grcg-option__name {
    grid-area: name;
    font-size: 13px;
    line-height: 1.2;
  }

  .grcg-option__price {
    grid-area: price;
    grid-column: auto;
    font-size: 12px;
    color: rgba(255, 255, 255, .62);
  }

  .grcg-option__count {
    grid-area: count;
    justify-self: end;
    font-size: 12px;
    line-height: 1.2;
  }

  .grcg-option__add,
  .grcg-option__remove {
    width: 28px;
    height: 28px;
    border-radius: 7px;
    font-size: 18px;
  }

  .grcg-option__remove {
    grid-area: minus;
  }

  .grcg-option__add {
    grid-area: plus;
  }

  .grcg-card__toggle {
    width: 100%;
    margin: 0;
    padding: 9px 8px;
    border-width: 1px 0 0;
    border-radius: 0;
    background: rgba(255, 255, 255, .045);
    color: rgba(255, 255, 255, .86);
    font-size: 12px;
  }

  .grcg-card__toggle:last-of-type {
    border-bottom: 0;
  }

  .grcg-card__picked {
    min-height: 0;
    padding: 7px 10px 10px;
    border-top: 1px solid rgba(78, 182, 255, .16);
    color: rgba(255, 255, 255, .7);
    font-size: 11px;
    line-height: 1.35;
  }

  .grcg-card__picked:empty {
    display: none;
  }

  .grcg-card__price {
    display: none;
  }
}
@media (max-width: 900px) {
  .grcg-card {
    background: #f4f4f4;
    border-color: rgba(255, 255, 255, .16);
  }

  .grcg-card:hover,
  .grcg-card.is-selected {
    background: #fff;
  }

  .grcg-card.is-selected {
    border-color: rgba(0, 153, 255, .7);
    box-shadow: 0 10px 24px rgba(0, 153, 255, .14);
  }

  .grcg-option {
    border-top-color: rgba(18, 18, 18, .1);
    color: #151515;
  }

  .grcg-option.is-selected {
    background: rgba(0, 153, 255, .1);
    border-top-color: rgba(0, 153, 255, .22);
  }

  .grcg-option__name {
    color: #121212;
  }

  .grcg-option__price {
    color: rgba(18, 18, 18, .68);
  }

  .grcg-option__count {
    color: #007bd1;
  }

  .grcg-option__add,
  .grcg-option__remove {
    border-color: rgba(0, 153, 255, .28);
    color: #121212;
    background: rgba(0, 153, 255, .12);
  }

  .grcg-option__add {
    color: #fff;
    background: #0b8fe8;
    border-color: #0b8fe8;
  }

  .grcg-option__remove:disabled {
    color: rgba(18, 18, 18, .36);
    background: rgba(18, 18, 18, .06);
    border-color: rgba(18, 18, 18, .08);
  }

  .grcg-card__toggle {
    border-color: rgba(18, 18, 18, .1);
    color: #151515;
    background: rgba(18, 18, 18, .045);
  }

  .grcg-card__toggle.is-open {
    border-color: rgba(0, 153, 255, .28);
    background: rgba(0, 153, 255, .08);
  }

  .grcg-card__picked {
    border-top-color: rgba(0, 153, 255, .2);
    color: rgba(18, 18, 18, .72);
    background: rgba(0, 153, 255, .06);
  }
}
/* Customer gallery card light theme */
.grcg-card {
  background: #f4f4f4;
  border-color: rgba(255, 255, 255, .18);
  color: #121212;
}

.grcg-card:hover,
.grcg-card.is-selected {
  background: #fff;
}

.grcg-card.is-selected {
  border-color: rgba(0, 153, 255, .68);
  box-shadow: 0 16px 34px rgba(0, 153, 255, .14);
}

.grcg-option {
  border-color: rgba(18, 18, 18, .1);
  background: rgba(18, 18, 18, .035);
  color: #151515;
}

.grcg-option.is-selected {
  border-color: rgba(0, 153, 255, .35);
  background: rgba(0, 153, 255, .1);
}

.grcg-option__name {
  color: #121212;
  font-size: 16px;
}

.grcg-option__price {
  color: rgba(18, 18, 18, .68);
}

.grcg-option__count {
  color: #007bd1;
  font-size: 15px;
}

.grcg-option__add,
.grcg-option__remove {
  border-color: rgba(0, 153, 255, .26);
  color: #121212;
  background: rgba(0, 153, 255, .1);
}

.grcg-option__add {
  color: #fff;
  background: #0b8fe8;
  border-color: #0b8fe8;
}

.grcg-option__remove:disabled {
  color: rgba(18, 18, 18, .38);
  background: rgba(18, 18, 18, .06);
  border-color: rgba(18, 18, 18, .08);
}

.grcg-card__toggle {
  border-color: #0b8fe8;
  color: #fff;
  background: #0b8fe8;
}

.grcg-card__toggle:hover,
.grcg-card__toggle.is-open {
  border-color: #22a7ff;
  color: #fff;
  background: #007bd1;
}

.grcg-card__picked {
  color: rgba(18, 18, 18, .72);
}

@media (max-width: 900px) {
  .grcg-option__name {
    font-size: 15px;
  }

  .grcg-option__count {
    font-size: 14px;
  }

  .grcg-card__toggle {
    color: #fff;
    background: #0b8fe8;
    border-color: #0b8fe8;
  }
}
.grcg-download-all,
.grcg-card__download {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid #0b8fe8;
  border-radius: 8px;
  color: #fff !important;
  background: #0b8fe8;
  text-decoration: none !important;
  font-weight: 700;
}

.grcg-download-all {
  padding: 11px 18px;
}

.grcg-card__download {
  width: calc(100% - 28px);
  margin: 10px 14px 0;
  padding: 9px 10px;
  box-sizing: border-box;
}

.grcg-download-all:hover,
.grcg-card__download:hover {
  background: #007bd1;
  border-color: #22a7ff;
}

@media (max-width: 900px) {
  .grcg-card__download {
    width: 100%;
    margin: 0;
    border-radius: 0;
    border-width: 1px 0 0;
  }
}
