/**
 * @file
 * MyEvent document gallery on full Event Group pages.
 */

.group.group--full.group--event-group
.ptah-event-media-gallery--documents {
  --documents-accent: #743cfb;
  --documents-accent-dark: #5f2ae5;
  --documents-accent-soft: #efe9ff;
  --documents-ink: #292738;
  --documents-muted: #716c7f;
  --documents-border: #e5e0ed;
  background: #fbfaff;
  border: 0px solid #e9e4f1;
  border-radius: 5px;
  box-shadow: 0 0.7rem 2rem rgb(50 37 79 / 5%);
  box-sizing: border-box;
  margin: 0 25px;
  max-width: 1600px;
  overflow: hidden;
  padding: clamp(1.05rem, 2.2vw, 1.45rem);
}

/* Section heading and count. */
.group.group--full.group--event-group
.ptah-event-media-gallery--documents
.ptah-event-media-gallery__heading {
  align-items: center;
  display: flex;
  gap: 1rem;
  justify-content: space-between;
  margin: 0 0 1rem;
  min-height: 3rem;
  padding: 0 0 0 3.85rem;
  position: relative;
}

.group.group--full.group--event-group
.ptah-event-media-gallery--documents
.ptah-event-media-gallery__heading::before {
  background: var(--documents-accent-soft);
  border-radius: 0.72rem;
  content: "";
  height: 3rem;
  left: 0;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 3rem;
}

.group.group--full.group--event-group
.ptah-event-media-gallery--documents
.ptah-event-media-gallery__heading::after {
  background-color: var(--documents-accent);
  content: "";
  height: 1.5rem;
  left: 0.75rem;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 3h8l4 4v14H6Z'/%3E%3Cpath d='M14 3v5h5M9 13h6M9 17h6'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 3h8l4 4v14H6Z'/%3E%3Cpath d='M14 3v5h5M9 13h6M9 17h6'/%3E%3C/svg%3E") center / contain no-repeat;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 1.5rem;
}

.group.group--full.group--event-group
.ptah-event-media-gallery--documents
.ptah-event-media-gallery__heading h2 {
  color: var(--documents-ink) !important;
  font-size: clamp(1.5rem, 2.3vw, 1.9rem);
  font-weight: 750;
  letter-spacing: -0.035em;
  line-height: 1.15;
  margin: 0;
  text-shadow: none !important;
}

.group.group--full.group--event-group
.ptah-event-media-gallery--documents
.ptah-event-media-gallery__heading h2::after {
  color: var(--documents-muted);
  content: "Files and resources shared with your event.";
  display: block;
  font-size: 0.92rem;
  font-weight: 450;
  letter-spacing: 0;
  line-height: 1.4;
  margin-top: 0.18rem;
}

.group.group--full.group--event-group
.ptah-event-media-gallery--documents
.ptah-event-media-gallery__heading > span {
  background: var(--documents-accent-soft);
  border: 1px solid #e2d7ff;
  border-radius: 999px;
  color: var(--documents-accent-dark);
  flex: 0 0 auto;
  font-size: 0.84rem;
  font-weight: 750;
  line-height: 1;
  padding: 0.63rem 0.9rem;
  white-space: nowrap;
}

/* Document rows. */
.group.group--full.group--event-group
.ptah-event-documents-list {
  display: grid;
  gap: 0.78rem;
}

.group.group--full.group--event-group
.ptah-event-document {
  align-items: center;
  background: #fff;
  border: 1px solid var(--documents-border);
  border-radius: 0.78rem;
  box-shadow: 0 0.35rem 1.15rem rgb(45 34 66 / 5%);
  box-sizing: border-box;
  display: grid;
  gap: 0.9rem 1rem;
  grid-template-columns: 4.4rem minmax(0, 1fr) auto;
  min-width: 0;
  padding: 0.78rem 0.95rem;
  transition: border-color 160ms ease, box-shadow 160ms ease,
    transform 160ms ease;
}

.group.group--full.group--event-group
.ptah-event-document:hover {
  border-color: #d8cff0;
  box-shadow: 0 0.55rem 1.35rem rgb(45 34 66 / 8%);
  transform: translateY(-1px);
}

.group.group--full.group--event-group
.ptah-event-document__type {
  align-items: center;
  align-self: stretch;
  background: linear-gradient(145deg, #f3eeff, #ebe4ff);
  border: 1px solid #e2d7ff;
  border-radius: 0.72rem;
  color: var(--documents-accent);
  display: flex;
  flex-direction: column;
  gap: 0.12rem;
  justify-content: center;
  min-height: 4.05rem;
  min-width: 4.4rem;
  padding: 0.38rem;
}

.group.group--full.group--event-group
.ptah-event-document__icon {
  color: var(--documents-accent);
  display: block;
  height: 1.55rem;
  width: 1.55rem;
}

.group.group--full.group--event-group
.ptah-event-document__extension {
  color: var(--documents-accent-dark);
  display: block;
  font-size: 0.69rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  line-height: 1;
  text-transform: uppercase;
}

.group.group--full.group--event-group
.ptah-event-document__details {
  align-self: center;
  min-width: 0;
}

.group.group--full.group--event-group
.ptah-event-document__title {
  color: var(--documents-ink) !important;
  font-size: 1rem;
  font-weight: 750;
  letter-spacing: -0.012em;
  line-height: 1.3;
  margin: 0;
  overflow-wrap: anywhere;
  text-shadow: none !important;
}

.group.group--full.group--event-group
.ptah-event-document__description {
  color: var(--documents-muted) !important;
  font-size: 0.88rem;
  line-height: 1.4;
  margin: 0.2rem 0 0;
}

.group.group--full.group--event-group
.ptah-event-document__meta {
  color: #827c8e;
  display: block;
  font-size: 0.78rem;
  font-weight: 650;
  line-height: 1.3;
  margin-top: 0.25rem;
  text-transform: uppercase;
}

/* Keep the two actions recognisable and prevent inherited icon-only rules. */
.group.group--full.group--event-group
.ptah-event-document__actions {
  align-items: center;
  display: flex;
  flex: 0 0 auto;
  gap: 0.65rem;
  justify-content: flex-end;
}

.group.group--full.group--event-group
.ptah-event-document__actions a {
  align-items: center;
  border-radius: 0.58rem;
  box-sizing: border-box;
  display: inline-flex !important;
  font-size: 0.86rem !important;
  font-weight: 700;
  gap: 0.45rem;
  justify-content: center;
  line-height: 1.2;
  min-height: 2.55rem;
  opacity: 1 !important;
  overflow: visible !important;
  padding: 0.62rem 0.88rem !important;
  text-decoration: none !important;
  text-indent: 0 !important;
  transition: background-color 160ms ease, border-color 160ms ease,
    box-shadow 160ms ease, transform 160ms ease;
  white-space: nowrap;
  width: auto !important;
}

.group.group--full.group--event-group
.ptah-event-document__actions a::before {
  background-color: currentColor;
  content: "";
  flex: 0 0 auto;
  height: 1rem;
  -webkit-mask-position: center;
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-size: contain;
  mask-position: center;
  mask-repeat: no-repeat;
  mask-size: contain;
  width: 1rem;
}

.group.group--full.group--event-group
.ptah-event-document__edit {
  background: #fff !important;
  border: 1px solid #cfc4ef !important;
  color: #423a65 !important;
}

.group.group--full.group--event-group
.ptah-event-document__edit::before {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 20h9'/%3E%3Cpath d='M16.5 3.5a2.12 2.12 0 0 1 3 3L8 18l-4 1 1-4Z'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 20h9'/%3E%3Cpath d='M16.5 3.5a2.12 2.12 0 0 1 3 3L8 18l-4 1 1-4Z'/%3E%3C/svg%3E");
}

.group.group--full.group--event-group
.ptah-event-document__download {
  background: var(--documents-accent) !important;
  border: 1px solid var(--documents-accent) !important;
  box-shadow: 0 0.4rem 0.9rem rgb(116 60 251 / 18%);
  color: #fff !important;
}

.group.group--full.group--event-group
.ptah-event-document__download::before {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3v12M7 10l5 5 5-5M5 21h14a2 2 0 0 0 2-2v-3M3 16v3a2 2 0 0 0 2 2'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3v12M7 10l5 5 5-5M5 21h14a2 2 0 0 0 2-2v-3M3 16v3a2 2 0 0 0 2 2'/%3E%3C/svg%3E");
}

.group.group--full.group--event-group
.ptah-event-document__edit:hover,
.group.group--full.group--event-group
.ptah-event-document__edit:focus-visible {
  background: #f8f6fc !important;
  border-color: #aa98df !important;
  color: #302650 !important;
}

.group.group--full.group--event-group
.ptah-event-document__download:hover,
.group.group--full.group--event-group
.ptah-event-document__download:focus-visible {
  background: var(--documents-accent-dark) !important;
  border-color: var(--documents-accent-dark) !important;
  box-shadow: 0 0.55rem 1rem rgb(116 60 251 / 24%);
  transform: translateY(-1px);
}

.group.group--full.group--event-group
.ptah-event-document__actions a:focus-visible {
  outline: 3px solid rgb(116 60 251 / 24%);
  outline-offset: 2px;
}

@media (max-width: 56rem) {
  .group.group--full.group--event-group
  .ptah-event-document {
    grid-template-columns: 4.1rem minmax(0, 1fr);
  }

  .group.group--full.group--event-group
  .ptah-event-document__actions {
    grid-column: 2;
    justify-content: flex-start;
  }
}

@media (max-width: 38rem) {
  .group.group--full.group--event-group
  .ptah-event-media-gallery--documents {
    border-left: 0;
    border-radius: 0;
    border-right: 0;
    margin-left: -0.75rem;
    margin-right: -0.75rem;
    padding: 1rem 0.75rem;
  }

  .group.group--full.group--event-group
  .ptah-event-media-gallery--documents
  .ptah-event-media-gallery__heading {
    align-items: flex-start;
    padding-left: 3.45rem;
  }

  .group.group--full.group--event-group
  .ptah-event-media-gallery--documents
  .ptah-event-media-gallery__heading::before {
    height: 2.65rem;
    width: 2.65rem;
  }

  .group.group--full.group--event-group
  .ptah-event-media-gallery--documents
  .ptah-event-media-gallery__heading::after {
    left: 0.66rem;
    height: 1.35rem;
    width: 1.35rem;
  }

  .group.group--full.group--event-group
  .ptah-event-media-gallery--documents
  .ptah-event-media-gallery__heading h2 {
    font-size: 1.45rem;
  }

  .group.group--full.group--event-group
  .ptah-event-media-gallery--documents
  .ptah-event-media-gallery__heading h2::after {
    font-size: 0.84rem;
  }

  .group.group--full.group--event-group
  .ptah-event-media-gallery--documents
  .ptah-event-media-gallery__heading > span {
    padding: 0.55rem 0.7rem;
  }

  .group.group--full.group--event-group
  .ptah-event-document {
    gap: 0.75rem;
    grid-template-columns: 3.8rem minmax(0, 1fr);
    padding: 0.75rem;
  }

  .group.group--full.group--event-group
  .ptah-event-document__type {
    min-height: 3.8rem;
    min-width: 3.8rem;
  }

  .group.group--full.group--event-group
  .ptah-event-document__actions {
    display: grid;
    grid-column: 1 / -1;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
  }

  .group.group--full.group--event-group
  .ptah-event-document__actions a {
    width: 100% !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .group.group--full.group--event-group .ptah-event-document,
  .group.group--full.group--event-group
  .ptah-event-document__actions a {
    transition: none;
  }
}

section.ptah-event-media-gallery.ptah-event-media-gallery--documents {
    max-width: 1600px!important;
    width: auto;
}