/*
 * Choose Session Pictures Page - Tailwind CSS Styles
 * Replaces legacy stylesheet-chooseSessionPictures.css
 */

/* Prevent scrolling past footer */
html, body {
  overflow-x: hidden;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Hide legacy dialog container from layout flow */
#boxes {
  position: absolute;
  visibility: hidden;
  pointer-events: none;
}

/* ==================== FANCYBOX LIGHTBOX ==================== */

.fancybox-wrap,
.fancybox-skin,
.fancybox-outer,
.fancybox-inner,
.fancybox-image,
.fancybox-wrap iframe,
.fancybox-wrap object,
.fancybox-nav,
.fancybox-nav span,
.fancybox-tmp {
  padding: 0;
  margin: 0;
  border: 0;
  outline: none;
  vertical-align: top;
}

.fancybox-wrap {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 8020;
}

.fancybox-skin {
  position: relative;
  background: #f9f9f9;
  color: #444;
  text-shadow: none;
  border-radius: 4px;
}

.fancybox-opened {
  z-index: 8030;
}

.fancybox-opened .fancybox-skin {
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
}

.fancybox-outer,
.fancybox-inner {
  position: relative;
}

.fancybox-inner {
  overflow: hidden;
}

.fancybox-type-iframe .fancybox-inner {
  -webkit-overflow-scrolling: touch;
}

.fancybox-image,
.fancybox-iframe {
  display: block;
  width: 100%;
  height: 100%;
}

.fancybox-image {
  max-width: 100%;
  max-height: 100%;
}

#fancybox-loading,
.fancybox-close,
.fancybox-prev span,
.fancybox-next span {
  background-image: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAUCAYAAACNiR0NAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAyJpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuMy1jMDExIDY2LjE0NTY2MSwgMjAxMi8wMi8wNi0xNDo1NjoyNyAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvIiB4bWxuczp4bXBNTT0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL21tLyIgeG1sbnM6c3RSZWY9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9zVHlwZS9SZXNvdXJjZVJlZiMiIHhtcDpDcmVhdG9yVG9vbD0iQWRvYmUgUGhvdG9zaG9wIENTNiAoV2luZG93cykiIHhtcE1NOkluc3RhbmNlSUQ9InhtcC5paWQ6MkJBRDcwOTlGMTE3MTFFMkJEQjZBNEIzRjQ3MDhEODYiIHhtcE1NOkRvY3VtZW50SUQ9InhtcC5kaWQ6MkJBRDcwOUFGMTE3MTFFMkJEQjZBNEIzRjQ3MDhEODYiPiA8eG1wTU06RGVyaXZlZEZyb20gc3RSZWY6aW5zdGFuY2VJRD0ieG1wLmlpZDoyQkFENzA5N0YxMTcxMUUyQkRCNkE0QjNGNDcwOEQ4NiIgc3RSZWY6ZG9jdW1lbnRJRD0ieG1wLmRpZDoyQkFENzA5OEYxMTcxMUUyQkRCNkE0QjNGNDcwOEQ4NiIvPiA8L3JkZjpEZXNjcmlwdGlvbj4gPC9yZGY6UkRGPiA8L3g6eG1wbWV0YT4gPD94cGFja2V0IGVuZD0iciI/Pv/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////');
}

#fancybox-loading {
  position: fixed;
  top: 50%;
  left: 50%;
  margin-top: -22px;
  margin-left: -22px;
  background-position: 0 -108px;
  opacity: 0.8;
  cursor: pointer;
  z-index: 8060;
}

#fancybox-loading div {
  width: 44px;
  height: 44px;
  background: url('/_Resources/Static/Packages/DoraPhotography.WebPhotographyPro/Images/ajax-loader.gif') center center no-repeat;
}

.fancybox-close {
  position: absolute;
  top: -18px;
  right: -18px;
  width: 36px;
  height: 36px;
  cursor: pointer;
  z-index: 8040;
  background-color: rgba(0, 0, 0, 0.8);
  border-radius: 50%;
  border: 2px solid white;
  transition: all 0.3s ease;
}

.fancybox-close:hover {
  background-color: white;
  transform: scale(1.1);
}

.fancybox-close::before {
  content: "×";
  font-size: 28px;
  color: white;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  line-height: 1;
  transition: color 0.3s ease;
}

.fancybox-close:hover::before {
  color: black;
}

.fancybox-nav {
  position: absolute;
  top: 0;
  width: 40%;
  height: 100%;
  cursor: pointer;
  text-decoration: none;
  background: transparent url('data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7');
  -webkit-tap-highlight-color: rgba(0,0,0,0);
  z-index: 8040;
}

.fancybox-prev {
  left: 0;
}

.fancybox-next {
  right: 0;
}

.fancybox-nav span {
  position: absolute;
  top: 50%;
  width: 36px;
  height: 36px;
  margin-top: -18px;
  cursor: pointer;
  z-index: 8040;
  visibility: hidden;
  background-color: rgba(0, 0, 0, 0.5);
  border-radius: 50%;
  border: 2px solid white;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.fancybox-prev span {
  left: 10px;
}

.fancybox-prev span::before {
  content: "‹";
  font-size: 32px;
  color: white;
  line-height: 32px;
  font-weight: bold;
  transition: color 0.3s ease;
  display: block;
  width: 32px;
  height: 32px;
  text-align: center;
}

.fancybox-next span {
  right: 10px;
}

.fancybox-next span::before {
  content: "›";
  font-size: 32px;
  color: white;
  line-height: 32px;
  font-weight: bold;
  transition: color 0.3s ease;
  display: block;
  width: 32px;
  height: 32px;
  text-align: center;
}

.fancybox-nav:hover span {
  visibility: visible;
  background-color: rgba(0, 0, 0, 0.8);
}

.fancybox-nav span:hover {
  background-color: white;
  transform: scale(1.1);
}

.fancybox-nav span:hover::before {
  color: black;
}

.fancybox-tmp {
  position: absolute;
  top: -99999px;
  left: -99999px;
  max-width: 99999px;
  max-height: 99999px;
  overflow: visible !important;
}

/* Overlay helper */
.fancybox-lock {
  overflow: visible !important;
  width: auto;
}

.fancybox-lock body {
  overflow: hidden !important;
}

.fancybox-lock-test {
  overflow-y: hidden !important;
}

.fancybox-overlay {
  position: absolute;
  top: 0;
  left: 0;
  overflow: hidden;
  display: none;
  z-index: 8010;
  background: rgba(0, 0, 0, 0.8);
}

.fancybox-overlay-fixed {
  position: fixed;
  bottom: 0;
  right: 0;
}

.fancybox-lock .fancybox-overlay {
  overflow: auto;
  overflow-y: scroll;
}

/* Title helper */
.fancybox-title {
  visibility: hidden;
  font: normal 13px/20px "Helvetica Neue",Helvetica,Arial,sans-serif;
  position: relative;
  text-shadow: none;
  z-index: 8050;
}

.fancybox-opened .fancybox-title {
  visibility: visible;
}

.fancybox-title-float-wrap {
  position: absolute;
  bottom: 0;
  right: 50%;
  margin-bottom: -35px;
  z-index: 8050;
  text-align: center;
}

.fancybox-title-float-wrap .child {
  display: inline-block;
  margin-right: -100%;
  padding: 2px 20px;
  background: transparent;
  background: rgba(0, 0, 0, 0.8);
  border-radius: 15px;
  text-shadow: 0 1px 2px #222;
  color: #FFF;
  font-weight: bold;
  line-height: 24px;
  white-space: nowrap;
}

.fancybox-title-outside-wrap {
  position: relative;
  margin-top: 10px;
  color: #fff;
}

.fancybox-title-inside-wrap {
  padding-top: 10px;
}

.fancybox-title-over-wrap {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  width: 100%;
  color: #fff;
  padding: 15px;
  background: #000;
  background: rgba(0, 0, 0, 0.85);
  z-index: 8050;
  visibility: visible !important;
  display: block !important;
}

.fancybox-title-over-wrap .row {
  display: flex !important;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  gap: 1rem;
}

.fancybox-title-over-wrap .row.collapse {
  display: flex !important;
}

.fancybox-title-over-wrap .columns {
  display: block !important;
}

.fancybox-title-over-wrap .small-9 {
  flex: 1;
  text-align: left;
  display: block !important;
}

.fancybox-title-over-wrap .small-3 {
  flex-shrink: 0;
  text-align: right;
  display: block !important;
}

.fancybox-title-over-wrap .script-fileName {
  color: white !important;
  font-size: 14px;
  font-weight: 600;
  display: block !important;
  visibility: visible !important;
}

.fancybox-title-over-wrap .button {
  font-size: 13px;
  padding: 8px 16px;
  visibility: visible !important;
  background-color: white;
  color: black;
  border: 2px solid black;
  border-radius: 0.5rem;
  box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  transition: all 0.3s ease;
  text-decoration: none;
  font-weight: 500;
  cursor: pointer;
}

.fancybox-title-over-wrap .button:hover {
  background-color: black;
  color: white;
}

.fancybox-title-over-wrap .wpp-titleButtons {
  display: flex !important;
  align-items: center;
  justify-content: flex-end;
  gap: 0.5rem;
  visibility: visible !important;
}

/* ==================== BUTTONS ==================== */

/* jQuery UI Dialog z-index override - must be above fancybox */
.ui-dialog {
  z-index: 9000 !important;
  width: 400px !important;
  max-width: 400px !important;
}

.ui-widget-overlay {
  z-index: 8999 !important;
}

/* Base button styling - consistent with website */
#panel_chooseSessionPictures .button,
#panel_chooseSessionPictures a.button {
  display: inline-block;
  padding: 0.625rem 1.25rem;
  background-color: white;
  color: black;
  text-decoration: none;
  border-radius: 0.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  border: 2px solid black;
  transition: all 0.3s ease;
  box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  cursor: pointer;
  text-align: center;
}

#panel_chooseSessionPictures .button:hover,
#panel_chooseSessionPictures a.button:hover {
  background-color: black;
  color: white;
}

#panel_chooseSessionPictures .button:focus,
#panel_chooseSessionPictures a.button:focus {
  outline: 2px solid transparent;
  outline-offset: 2px;
}

/* Window/Modal buttons */
.button,
a.button {
  display: inline-block;
  padding: 0.625rem 1.25rem;
  background-color: white;
  color: black;
  text-decoration: none;
  border-radius: 0.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  border: 2px solid black;
  transition: all 0.3s ease;
  box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  cursor: pointer;
  text-align: center;
}

.button:hover,
a.button:hover {
  background-color: black;
  color: white;
}

.button:focus,
a.button:focus {
  outline: 2px solid transparent;
  outline-offset: 2px;
}

/* Modal/Window dialog styling */
.window {
  min-width: 400px;
  max-width: 500px;
}

.window .buttons {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.75rem;
  margin-top: 1.5rem;
  flex-wrap: wrap;
}

.window .description {
  text-align: center;
  color: rgb(55 65 81);
  font-size: 1rem;
  line-height: 1.5;
  margin-bottom: 0.5rem;
}

.window .description:last-child {
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid rgb(229 231 235);
}

.window .body {
  padding: 1rem;
}

/* Primary/Default button in dialogs */
.window .button:first-of-type,
.window a.button:first-of-type {
  background-color: black;
  color: white;
}

.window .button:first-of-type:hover,
.window a.button:first-of-type:hover {
  background-color: white;
  color: black;
}

/* ==================== PANEL CHOOSE SESSION PICTURES ==================== */

/* Wait/Loading State - Removed legacy styles, using Tailwind classes in HTML */

/* Filter Section */
#panel_chooseSessionPictures .wpp-filter select {
  padding: 0.25rem 1.5rem 0.25rem 0.5rem;
  border: 2px solid rgb(31 41 55);
  border-radius: 0.375rem;
  font-size: 0.875rem;
  line-height: 1.25;
  background-color: white;
  color: rgb(31 41 55);
  cursor: pointer;
  transition: all 0.3s ease;
}

#panel_chooseSessionPictures .wpp-filter select:hover {
  border-color: rgb(55 65 81);
}

#panel_chooseSessionPictures .wpp-filter select:focus {
  outline: 2px solid transparent;
  outline-offset: 2px;
  border-color: rgb(31 41 55);
}

/* Thumbnail Images */
#panel_chooseSessionPictures .sessionPicture_list img {
  border: 1px solid rgb(80 80 80);
  border-radius: 0.25rem;
  transition: all 0.3s ease;
  width: 100%;
  height: auto;
}

#panel_chooseSessionPictures .sessionPicture_list img:hover {
  border-color: rgb(220 38 38);
  box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
}

#panel_chooseSessionPictures .sessionPicture_list img.selected {
  outline: 4px solid rgb(220 38 38);
  outline-offset: -4px;
}

/* File Name */
#panel_chooseSessionPictures .sessionPicture_list .fileName {
  font-family: system-ui, -apple-system, sans-serif;
  font-size: 0.875rem;
  font-weight: 700;
  color: rgb(48 48 48);
  text-align: center;
  margin-top: 0.5rem;
}

/* ==================== FANCYBOX STYLES ==================== */

.ribbon-wrapper-green {
  width: 5.313rem;
  height: 5.5rem;
  overflow: hidden;
  position: absolute;
  top: -0.125rem;
  left: -0.125rem;
  pointer-events: none;
  z-index: 1;
}

.ribbon-green {
  float: right;
  font-family: system-ui, -apple-system, sans-serif;
  font-weight: 700;
  font-size: 0.938rem;
  color: rgb(106 99 64);
  text-align: center;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.5);
  transform: rotate(-45deg);
  position: relative;
  padding: 0.438rem 0;
  right: -0.313rem;
  top: 0.938rem;
  width: 7.5rem;
  background: linear-gradient(to bottom, rgb(191 220 122), rgb(142 191 69));
  box-shadow: 0 0 3px rgba(0, 0, 0, 0.3);
}

.ribbon-green::before,
.ribbon-green::after {
  content: "";
  border-top: 3px solid rgb(110 137 0);
  border-left: 3px solid transparent;
  border-right: 3px solid transparent;
  position: absolute;
  bottom: -3px;
}

.ribbon-green::before {
  left: 0;
}

.ribbon-green::after {
  right: 0;
}

/* ==================== FOUNDATION GRID COMPATIBILITY ==================== */

.row {
  display: block;
  width: 100%;
}

.row.collapse {
  display: block;
}

.row::after {
  content: "";
  display: table;
  clear: both;
}

.columns {
  display: block;
}

@media (min-width: 641px) {
  .medium-4 {
    display: block;
    width: 33.333333%;
    float: left;
  }
  
  .medium-8 {
    display: block;
    width: 66.666667%;
    float: left;
  }
}

.small-9 {
  display: block;
  width: 75%;
  float: left;
}

.small-3 {
  display: block;
  width: 25%;
  float: left;
}

.column {
  display: block;
}

.column-block {
  position: relative;
}

/* ==================== UTILITIES ==================== */

/* Links */
#panel_chooseSessionPictures a.link {
  color: rgb(var(--color-brand-accent));
  text-decoration: underline;
  font-weight: 600;
  transition: color 0.3s ease;
}

#panel_chooseSessionPictures a.link:hover {
  color: rgb(var(--color-brand-neutral-accent));
}

/* Error messages */
#panel_chooseSessionPictures .error {
  color: rgb(220 38 38);
  font-size: 0.875rem;
  margin-top: 0.5rem;
}

/* Script wait indicators */
.script-wait:not(.panel_wait) {
  display: inline-block;
  margin-left: 0.5rem;
}

.script-wait:not(.panel_wait) img {
  width: 1.25rem;
  height: auto;
}
