.image-viewer-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: opacity 0.3s ease;
  opacity: 0;
}

.image-viewer-container.visible {
  opacity: 1;
}

.viewer-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.85);
  z-index: 1001;
}

.viewer-content {
  position: relative;
  z-index: 1002;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.viewer-header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1004;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 24px;
  background: linear-gradient(to bottom, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.3) 80%, rgba(0,0,0,0) 100%);
  backdrop-filter: blur(8px);
}

.image-counter {
  color: white;
  font-size: 16px;
}

.header-actions {
  display: flex;
  gap: 8px;
}

.header-btn {
  color: white !important;
  border: none;
  background: transparent !important;
  border-radius: 50%;
  height: 36px;
  width: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.header-btn:hover {
  background: rgba(255, 255, 255, 0.2) !important;
}

.image-container {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1003;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  touch-action: none;
}

.image-transform-wrapper {
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: visible;
  position: relative;
}

.viewer-img {
  max-width: 100%;
  max-height: 100%;
  user-select: none;
  -webkit-user-drag: none;
  will-change: transform;
}

.viewer-img.dragging {
  cursor: grabbing !important;
}

.zoom-controls {
  position: absolute;
  bottom: 100px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1005;
  display: flex;
  align-items: center;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(8px);
  padding: 8px 12px;
  border-radius: 24px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.zoom-controls .ant-btn {
  color: white !important;
  border: none;
  background: transparent !important;
  border-radius: 50%;
  margin: 0 2px;
}

.zoom-controls .ant-btn:hover {
  background: rgba(255, 255, 255, 0.2) !important;
}

.nav-button {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 1005;
  background: rgba(0, 0, 0, 0.3) !important;
  backdrop-filter: blur(4px);
  color: white !important;
  border: none !important;
  width: 44px;
  height: 44px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
}

.prev-button {
  left: 20px;
}

.next-button {
  right: 20px;
}

.nav-button:hover {
  background-color: rgba(0, 0, 0, 0.7) !important;
}

.viewer-footer {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1004;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 24px;
  background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.3) 80%, rgba(0,0,0,0) 100%);
  backdrop-filter: blur(8px);
}

.image-name {
  color: white;
  max-width: 70%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.footer-actions {
  display: flex;
  gap: 8px;
}

.footer-btn {
  color: white !important;
  border: none;
  background: transparent !important;
  font-size: 18px;
  border-radius: 50%;
  height: 40px;
  width: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.footer-btn:hover {
  background: rgba(255, 255, 255, 0.2) !important;
}

.footer-btn span {
  margin-left: 4px;
  font-size: 14px;
}

.image-info-drawer {
  position: absolute !important;
  z-index: 1050 !important;
}

.image-info-drawer .ant-drawer-mask {
  background-color: transparent !important;
}

.image-info-drawer .ant-drawer-header {
  background-color: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(15px);
  border-bottom: 1px solid rgba(240, 240, 240, 0.6);
}

.drawer-content {
  padding: 16px 0;
}

.image-title-section {
  margin-bottom: 16px;
}

.image-title-section h4 {
  margin-bottom: 4px;
}

.image-description-section {
  margin-bottom: 16px;
  padding: 16px;
  background: rgba(249, 249, 249, 0.5) !important;
  border-radius: 4px;
  backdrop-filter: blur(10px) !important;
}

.image-tags-section {
  margin-bottom: 16px;
}

.tag-title {
  margin-bottom: 8px;
  font-weight: 500;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.exif-description {
  font-size: 13px;
}

.exif-description .ant-descriptions-item-label {
  width: 100px;
}

.image-specs-section {
  margin: 16px 0;
  padding: 16px;
  background: rgba(247, 249, 250, 0.5) !important;
  border-radius: 8px;
  backdrop-filter: blur(10px) !important;
}

.specs-container {
  display: flex;
  justify-content: space-around;
  text-align: center;
}

.spec-item {
  flex: 1;
  padding: 0 8px;
}

.spec-value {
  font-size: 16px;
  font-weight: 500;
  color: #262626;
  margin-bottom: 4px;
}

.spec-label {
  font-size: 12px;
  color: #8c8c8c;
}

.exif-sections {
  margin-top: 20px;
}

.exif-category {
  margin-bottom: 24px;
}

.exif-category .ant-divider {
  margin: 16px 0;
}

.exif-description {
  font-size: 13px;
}

.exif-description .ant-descriptions-item-label {
  width: 90px;
  font-weight: 500;
}

.image-info-drawer .ant-drawer-body {
  padding: 24px 20px;
}

.exif-description .ant-descriptions-view {
  background-color: rgba(255, 255, 255, 0.5) !important;
  backdrop-filter: blur(10px) !important;
}

.exif-description .ant-descriptions-row > th,
.exif-description .ant-descriptions-row > td {
  padding: 12px 16px;
}

.image-loading-spinner {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 1004;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.loading-text {
  color: white;
  font-size: 14px;
  margin-top: 12px;
}

.image-loading-spinner .ant-spin {
  color: white;
}

.image-loading-spinner .ant-spin-dot-item {
  background-color: white;
}
