/*
 * Structural base for the vanilla datepicker component: layout only, no
 * paint. Each skin (in datepicker-skins/) supplies the visual styling on
 * top, targeting the same class names jQuery UI's datepicker used to
 * produce.
 */

.ui-datepicker {
  width: 17em;
  padding: .2em .2em 0;
}

.ui-datepicker-header {
  position: relative;
  padding: .2em 0;
}

.ui-datepicker-prev,
.ui-datepicker-next {
  position: absolute;
  top: 2px;
  width: 1.8em;
  height: 1.8em;
  cursor: pointer;
}

.ui-datepicker-prev {
  left: 2px;
}

.ui-datepicker-next {
  right: 2px;
}

.ui-icon {
  display: block;
  position: absolute;
  left: 50%;
  top: 50%;
  margin: -8px 0 0 -8px;
  width: 16px;
  height: 16px;
  text-indent: -99999px;
  overflow: hidden;
  background-repeat: no-repeat;
}

.ui-datepicker-title {
  margin: 0 2.3em;
  line-height: 1.8em;
  text-align: center;
}

.ui-datepicker-calendar {
  width: 100%;
  font-size: .9em;
  border-collapse: collapse;
  margin: 0 0 .4em;
}

.ui-datepicker-calendar th {
  padding: .7em .3em;
  text-align: center;
  font-weight: 700;
  border: 0;
}

.ui-datepicker-calendar td {
  border: 0;
  padding: 1px;
}

.ui-datepicker-calendar td span,
.ui-datepicker-calendar td a {
  display: block;
  padding: .5em;
  text-align: center;
  text-decoration: none;
}

/* Gallery layout for the datepicker skins page */

.skin-gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2.5rem;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 1.5rem 3rem;
}

.skin-gallery__item h3 {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  font-size: 1rem;
  text-transform: capitalize;
  margin-bottom: .75rem;
}

.skin-gallery__links {
  display: flex;
  gap: .75rem;
  font-size: .75rem;
  font-weight: 600;
  text-transform: uppercase;
}

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